153 template(for_removal, "forRemoval") \
154 /* Java runtime version access */ \
155 template(java_lang_VersionProps, "java/lang/VersionProps") \
156 template(java_version_name, "java_version") \
157 template(java_runtime_name_name, "java_runtime_name") \
158 template(java_runtime_version_name, "java_runtime_version") \
159 template(java_runtime_vendor_version_name, "VENDOR_VERSION") \
160 template(java_runtime_vendor_vm_bug_url_name, "VENDOR_URL_VM_BUG") \
161 \
162 /* system initialization */ \
163 template(initPhase1_name, "initPhase1") \
164 template(initPhase2_name, "initPhase2") \
165 template(initPhase3_name, "initPhase3") \
166 template(java_lang_module_init_signature, "(Ljava/lang/ClassLoader;Ljava/lang/String;)V") \
167 \
168 /* class file format tags */ \
169 template(tag_source_file, "SourceFile") \
170 template(tag_inner_classes, "InnerClasses") \
171 template(tag_nest_members, "NestMembers") \
172 template(tag_nest_host, "NestHost") \
173 template(tag_constant_value, "ConstantValue") \
174 template(tag_code, "Code") \
175 template(tag_exceptions, "Exceptions") \
176 template(tag_line_number_table, "LineNumberTable") \
177 template(tag_local_variable_table, "LocalVariableTable") \
178 template(tag_local_variable_type_table, "LocalVariableTypeTable") \
179 template(tag_method_parameters, "MethodParameters") \
180 template(tag_stack_map_table, "StackMapTable") \
181 template(tag_synthetic, "Synthetic") \
182 template(tag_deprecated, "Deprecated") \
183 template(tag_source_debug_extension, "SourceDebugExtension") \
184 template(tag_signature, "Signature") \
185 template(tag_record, "Record") \
186 template(tag_runtime_visible_annotations, "RuntimeVisibleAnnotations") \
187 template(tag_runtime_invisible_annotations, "RuntimeInvisibleAnnotations") \
188 template(tag_runtime_visible_parameter_annotations, "RuntimeVisibleParameterAnnotations") \
189 template(tag_runtime_invisible_parameter_annotations,"RuntimeInvisibleParameterAnnotations") \
190 template(tag_annotation_default, "AnnotationDefault") \
191 template(tag_runtime_visible_type_annotations, "RuntimeVisibleTypeAnnotations") \
192 template(tag_runtime_invisible_type_annotations, "RuntimeInvisibleTypeAnnotations") \
193 template(tag_enclosing_method, "EnclosingMethod") \
194 template(tag_bootstrap_methods, "BootstrapMethods") \
195 template(tag_permitted_subclasses, "PermittedSubclasses") \
196 \
197 /* exception klasses: at least all exceptions thrown by the VM have entries here */ \
198 template(java_lang_ArithmeticException, "java/lang/ArithmeticException") \
199 template(java_lang_ArrayIndexOutOfBoundsException, "java/lang/ArrayIndexOutOfBoundsException") \
200 template(java_lang_ArrayStoreException, "java/lang/ArrayStoreException") \
201 template(java_lang_ClassCastException, "java/lang/ClassCastException") \
202 template(java_lang_ClassNotFoundException, "java/lang/ClassNotFoundException") \
203 template(java_lang_CloneNotSupportedException, "java/lang/CloneNotSupportedException") \
204 template(java_lang_IllegalAccessException, "java/lang/IllegalAccessException") \
205 template(java_lang_IllegalArgumentException, "java/lang/IllegalArgumentException") \
206 template(java_lang_IllegalCallerException, "java/lang/IllegalCallerException") \
207 template(java_lang_IllegalStateException, "java/lang/IllegalStateException") \
208 template(java_lang_IllegalMonitorStateException, "java/lang/IllegalMonitorStateException") \
209 template(java_lang_IllegalThreadStateException, "java/lang/IllegalThreadStateException") \
210 template(java_lang_IndexOutOfBoundsException, "java/lang/IndexOutOfBoundsException") \
211 template(java_lang_InstantiationException, "java/lang/InstantiationException") \
212 template(java_lang_InstantiationError, "java/lang/InstantiationError") \
213 template(java_lang_InterruptedException, "java/lang/InterruptedException") \
214 template(java_lang_BootstrapMethodError, "java/lang/BootstrapMethodError") \
215 template(java_lang_LinkageError, "java/lang/LinkageError") \
216 template(java_lang_NegativeArraySizeException, "java/lang/NegativeArraySizeException") \
217 template(java_lang_NoSuchMethodException, "java/lang/NoSuchMethodException") \
218 template(java_lang_NullPointerException, "java/lang/NullPointerException") \
219 template(java_lang_StringIndexOutOfBoundsException, "java/lang/StringIndexOutOfBoundsException")\
220 template(java_lang_UnsupportedOperationException, "java/lang/UnsupportedOperationException") \
221 template(java_lang_InvalidClassException, "java/lang/InvalidClassException") \
222 template(java_lang_reflect_InvocationTargetException, "java/lang/reflect/InvocationTargetException") \
223 template(java_lang_Exception, "java/lang/Exception") \
224 template(java_lang_RuntimeException, "java/lang/RuntimeException") \
225 template(java_io_IOException, "java/io/IOException") \
226 \
227 /* error klasses: at least all errors thrown by the VM have entries here */ \
228 template(java_lang_AbstractMethodError, "java/lang/AbstractMethodError") \
236 template(java_lang_InternalError, "java/lang/InternalError") \
237 template(java_lang_NoClassDefFoundError, "java/lang/NoClassDefFoundError") \
238 template(java_lang_NoSuchFieldError, "java/lang/NoSuchFieldError") \
239 template(java_lang_NoSuchMethodError, "java/lang/NoSuchMethodError") \
240 template(java_lang_OutOfMemoryError, "java/lang/OutOfMemoryError") \
241 template(java_lang_UnsatisfiedLinkError, "java/lang/UnsatisfiedLinkError") \
242 template(java_lang_VerifyError, "java/lang/VerifyError") \
243 template(java_lang_SecurityException, "java/lang/SecurityException") \
244 template(java_lang_VirtualMachineError, "java/lang/VirtualMachineError") \
245 template(java_lang_StackOverflowError, "java/lang/StackOverflowError") \
246 template(java_lang_StackTraceElement, "java/lang/StackTraceElement") \
247 \
248 /* Concurrency support */ \
249 template(java_util_concurrent_locks_AbstractOwnableSynchronizer, "java/util/concurrent/locks/AbstractOwnableSynchronizer") \
250 template(java_util_concurrent_atomic_AtomicIntegerFieldUpdater_Impl, "java/util/concurrent/atomic/AtomicIntegerFieldUpdater$AtomicIntegerFieldUpdaterImpl") \
251 template(java_util_concurrent_atomic_AtomicLongFieldUpdater_CASUpdater, "java/util/concurrent/atomic/AtomicLongFieldUpdater$CASUpdater") \
252 template(java_util_concurrent_atomic_AtomicLongFieldUpdater_LockedUpdater, "java/util/concurrent/atomic/AtomicLongFieldUpdater$LockedUpdater") \
253 template(java_util_concurrent_atomic_AtomicReferenceFieldUpdater_Impl, "java/util/concurrent/atomic/AtomicReferenceFieldUpdater$AtomicReferenceFieldUpdaterImpl") \
254 template(jdk_internal_vm_annotation_Contended_signature, "Ljdk/internal/vm/annotation/Contended;") \
255 template(jdk_internal_vm_annotation_ReservedStackAccess_signature, "Ljdk/internal/vm/annotation/ReservedStackAccess;") \
256 template(jdk_internal_ValueBased_signature, "Ljdk/internal/ValueBased;") \
257 \
258 /* class symbols needed by intrinsics */ \
259 VM_INTRINSICS_DO(VM_INTRINSIC_IGNORE, template, VM_SYMBOL_IGNORE, VM_SYMBOL_IGNORE, VM_ALIAS_IGNORE) \
260 \
261 /* Support for reflection based on dynamic bytecode generation (JDK 1.4 and above) */ \
262 \
263 template(jdk_internal_reflect, "jdk/internal/reflect") \
264 template(reflect_MethodAccessorImpl, "jdk/internal/reflect/MethodAccessorImpl") \
265 template(reflect_DelegatingClassLoader, "jdk/internal/reflect/DelegatingClassLoader") \
266 template(reflect_Reflection, "jdk/internal/reflect/Reflection") \
267 template(reflect_CallerSensitive, "jdk/internal/reflect/CallerSensitive") \
268 template(reflect_CallerSensitive_signature, "Ljdk/internal/reflect/CallerSensitive;") \
269 template(reflect_DirectConstructorHandleAccessor_NativeAccessor, "jdk/internal/reflect/DirectConstructorHandleAccessor$NativeAccessor") \
270 template(reflect_SerializationConstructorAccessorImpl, "jdk/internal/reflect/SerializationConstructorAccessorImpl") \
271 template(clazz_name, "clazz") \
272 template(exceptionTypes_name, "exceptionTypes") \
273 template(modifiers_name, "modifiers") \
274 template(invokeBasic_name, "invokeBasic") \
275 template(linkToVirtual_name, "linkToVirtual") \
276 template(linkToStatic_name, "linkToStatic") \
277 template(linkToSpecial_name, "linkToSpecial") \
278 template(linkToInterface_name, "linkToInterface") \
279 template(linkToNative_name, "linkToNative") \
280 template(compiledLambdaForm_name, "<compiledLambdaForm>") /*fake name*/ \
281 template(star_name, "*") /*not really a name*/ \
282 template(invoke_name, "invoke") \
283 template(parameterTypes_name, "parameterTypes") \
284 template(returnType_name, "returnType") \
285 template(signature_name, "signature") \
286 template(slot_name, "slot") \
287 template(trusted_final_name, "trustedFinal") \
288 template(blackhole_name, "<blackhole>") /*fake name*/ \
289 \
290 /* Support for annotations (JDK 1.5 and above) */ \
291 \
292 template(annotations_name, "annotations") \
293 template(index_name, "index") \
294 template(executable_name, "executable") \
295 template(parameter_annotations_name, "parameterAnnotations") \
296 template(annotation_default_name, "annotationDefault") \
297 template(reflect_ConstantPool, "jdk/internal/reflect/ConstantPool") \
298 template(base_name, "base") \
299 /* Type Annotations (JDK 8 and above) */ \
300 template(type_annotations_name, "typeAnnotations") \
301 \
302 /* Intrinsic Annotation (JDK 9 and above) */ \
303 template(jdk_internal_vm_annotation_DontInline_signature, "Ljdk/internal/vm/annotation/DontInline;") \
304 template(jdk_internal_vm_annotation_ForceInline_signature, "Ljdk/internal/vm/annotation/ForceInline;") \
305 template(jdk_internal_vm_annotation_Hidden_signature, "Ljdk/internal/vm/annotation/Hidden;") \
306 template(jdk_internal_misc_Scoped_signature, "Ljdk/internal/misc/ScopedMemoryAccess$Scoped;") \
307 template(jdk_internal_vm_annotation_IntrinsicCandidate_signature, "Ljdk/internal/vm/annotation/IntrinsicCandidate;") \
492 template(input_stream_signature, "Ljava/io/InputStream;") \
493 template(print_stream_signature, "Ljava/io/PrintStream;") \
494 template(security_manager_signature, "Ljava/lang/SecurityManager;") \
495 template(defineOrCheckPackage_name, "defineOrCheckPackage") \
496 template(defineOrCheckPackage_signature, "(Ljava/lang/String;Ljava/util/jar/Manifest;Ljava/net/URL;)Ljava/lang/Package;") \
497 template(getProtectionDomain_name, "getProtectionDomain") \
498 template(getProtectionDomain_signature, "(Ljava/security/CodeSource;)Ljava/security/ProtectionDomain;") \
499 template(java_lang_Integer_array_signature, "[Ljava/lang/Integer;") \
500 template(java_lang_Long_array_signature, "[Ljava/lang/Long;") \
501 template(java_lang_Character_array_signature, "[Ljava/lang/Character;") \
502 template(java_lang_Short_array_signature, "[Ljava/lang/Short;") \
503 template(java_lang_Byte_array_signature, "[Ljava/lang/Byte;") \
504 template(java_lang_Boolean_signature, "Ljava/lang/Boolean;") \
505 template(url_code_signer_array_void_signature, "(Ljava/net/URL;[Ljava/security/CodeSigner;)V") \
506 template(jvmti_thread_state_name, "jvmti_thread_state") \
507 template(jvmti_VTMS_transition_disable_count_name, "jvmti_VTMS_transition_disable_count") \
508 template(jvmti_is_in_VTMS_transition_name, "jvmti_is_in_VTMS_transition") \
509 template(module_entry_name, "module_entry") \
510 template(resolved_references_name, "<resolved_references>") \
511 template(init_lock_name, "<init_lock>") \
512 template(address_size_name, "ADDRESS_SIZE0") \
513 template(page_size_name, "PAGE_SIZE") \
514 template(big_endian_name, "BIG_ENDIAN") \
515 template(use_unaligned_access_name, "UNALIGNED_ACCESS") \
516 template(data_cache_line_flush_size_name, "DATA_CACHE_LINE_FLUSH_SIZE") \
517 template(during_unsafe_access_name, "during_unsafe_access") \
518 template(checkIndex_name, "checkIndex") \
519 template(jfr_epoch_name, "jfr_epoch") \
520 template(maxThawingSize_name, "maxThawingSize") \
521 \
522 /* name symbols needed by intrinsics */ \
523 VM_INTRINSICS_DO(VM_INTRINSIC_IGNORE, VM_SYMBOL_IGNORE, template, VM_SYMBOL_IGNORE, VM_ALIAS_IGNORE) \
524 \
525 /* common signatures names */ \
526 template(void_method_signature, "()V") \
527 template(void_boolean_signature, "()Z") \
528 template(void_byte_signature, "()B") \
529 template(void_char_signature, "()C") \
530 template(void_short_signature, "()S") \
531 template(void_int_signature, "()I") \
563 template(char_array_signature, "[C") \
564 template(int_array_signature, "[I") \
565 template(runnable_signature, "Ljava/lang/Runnable;") \
566 template(continuation_signature, "Ljdk/internal/vm/Continuation;") \
567 template(continuationscope_signature, "Ljdk/internal/vm/ContinuationScope;") \
568 template(stackchunk_signature, "Ljdk/internal/vm/StackChunk;") \
569 template(object_void_signature, "(Ljava/lang/Object;)V") \
570 template(object_int_signature, "(Ljava/lang/Object;)I") \
571 template(long_object_long_signature, "(JLjava/lang/Object;)J") \
572 template(object_boolean_signature, "(Ljava/lang/Object;)Z") \
573 template(object_object_signature, "(Ljava/lang/Object;)Ljava/lang/Object;") \
574 template(string_void_signature, "(Ljava/lang/String;)V") \
575 template(string_bool_byte_array_signature, "(Ljava/lang/String;Z)[B") \
576 template(throwable_signature, "Ljava/lang/Throwable;") \
577 template(throwable_void_signature, "(Ljava/lang/Throwable;)V") \
578 template(void_throwable_signature, "()Ljava/lang/Throwable;") \
579 template(class_void_signature, "(Ljava/lang/Class;)V") \
580 template(class_int_signature, "(Ljava/lang/Class;)I") \
581 template(class_long_signature, "(Ljava/lang/Class;)J") \
582 template(class_boolean_signature, "(Ljava/lang/Class;)Z") \
583 template(throwable_throwable_signature, "(Ljava/lang/Throwable;)Ljava/lang/Throwable;") \
584 template(thread_void_signature, "(Ljava/lang/Thread;)V") \
585 template(runnable_void_signature, "(Ljava/lang/Runnable;)V") \
586 template(threadgroup_runnable_void_signature, "(Ljava/lang/ThreadGroup;Ljava/lang/Runnable;)V") \
587 template(threadgroup_string_void_signature, "(Ljava/lang/ThreadGroup;Ljava/lang/String;)V") \
588 template(void_threadgroup_array_signature, "()[Ljava/lang/ThreadGroup;") \
589 template(string_class_signature, "(Ljava/lang/String;)Ljava/lang/Class;") \
590 template(string_boolean_class_signature, "(Ljava/lang/String;Z)Ljava/lang/Class;") \
591 template(object_object_object_signature, "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;") \
592 template(string_string_signature, "(Ljava/lang/String;)Ljava/lang/String;") \
593 template(classloader_class_string_string_long_signature, "(Ljava/lang/ClassLoader;Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;)J") \
594 template(byte_array_void_signature, "([B)V") \
595 template(long_long_void_signature, "(JJ)V") \
596 template(void_byte_array_signature, "()[B") \
597 template(void_classloader_signature, "()Ljava/lang/ClassLoader;") \
598 template(void_BuiltinClassLoader_signature, "()Ljdk/internal/loader/BuiltinClassLoader;") \
599 template(void_object_signature, "()Ljava/lang/Object;") \
600 template(void_class_signature, "()Ljava/lang/Class;") \
601 template(void_class_array_signature, "()[Ljava/lang/Class;") \
602 template(void_string_signature, "()Ljava/lang/String;") \
603 template(object_array_object_signature, "([Ljava/lang/Object;)Ljava/lang/Object;") \
604 template(object_object_array_object_signature, "(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;")\
605 template(protectiondomain_signature, "[Ljava/security/ProtectionDomain;") \
606 template(accesscontrolcontext_signature, "Ljava/security/AccessControlContext;") \
607 template(class_protectiondomain_signature, "(Ljava/lang/Class;Ljava/security/ProtectionDomain;)V") \
608 template(thread_signature, "Ljava/lang/Thread;") \
609 template(thread_fieldholder_signature, "Ljava/lang/Thread$FieldHolder;") \
610 template(threadgroup_signature, "Ljava/lang/ThreadGroup;") \
611 template(threadgroup_array_signature, "[Ljava/lang/ThreadGroup;") \
702 template(addUses_signature, "(Ljava/lang/Module;Ljava/lang/Class;)V") \
703 template(addProvides_name, "addProvides") \
704 template(addProvides_signature, "(Ljava/lang/Module;Ljava/lang/Class;Ljava/lang/Class;)V") \
705 template(loadModule_name, "loadModule") \
706 template(loadModule_signature, "(Ljava/lang/String;)Ljava/lang/Module;") \
707 template(transformedByAgent_name, "transformedByAgent") \
708 template(transformedByAgent_signature, "(Ljava/lang/Module;)V") \
709 template(appendToClassPathForInstrumentation_name, "appendToClassPathForInstrumentation") \
710 do_alias(appendToClassPathForInstrumentation_signature, string_void_signature) \
711 template(serializePropertiesToByteArray_name, "serializePropertiesToByteArray") \
712 template(serializeAgentPropertiesToByteArray_name, "serializeAgentPropertiesToByteArray") \
713 template(encodeThrowable_name, "encodeThrowable") \
714 template(encodeThrowable_signature, "(Ljava/lang/Throwable;JI)I") \
715 template(decodeAndThrowThrowable_name, "decodeAndThrowThrowable") \
716 template(encodeAnnotations_name, "encodeAnnotations") \
717 template(encodeAnnotations_signature, "([BLjava/lang/Class;Ljdk/internal/reflect/ConstantPool;Z[Ljava/lang/Class;)[B")\
718 template(decodeAndThrowThrowable_signature, "(IJZZ)V") \
719 template(classRedefinedCount_name, "classRedefinedCount") \
720 template(classLoader_name, "classLoader") \
721 template(componentType_name, "componentType") \
722 \
723 /* forEachRemaining support */ \
724 template(java_util_stream_StreamsRangeIntSpliterator, "java/util/stream/Streams$RangeIntSpliterator") \
725 \
726 /* jfr signatures */ \
727 JFR_TEMPLATES(template) \
728 \
729 /* CDS */ \
730 template(dumpSharedArchive, "dumpSharedArchive") \
731 template(dumpSharedArchive_signature, "(ZLjava/lang/String;)Ljava/lang/String;") \
732 template(generateLambdaFormHolderClasses, "generateLambdaFormHolderClasses") \
733 template(generateLambdaFormHolderClasses_signature, "([Ljava/lang/String;)[Ljava/lang/Object;") \
734 template(java_lang_Enum, "java/lang/Enum") \
735 template(java_lang_invoke_Invokers_Holder, "java/lang/invoke/Invokers$Holder") \
736 template(java_lang_invoke_DirectMethodHandle_Holder, "java/lang/invoke/DirectMethodHandle$Holder") \
737 template(java_lang_invoke_LambdaForm_Holder, "java/lang/invoke/LambdaForm$Holder") \
738 template(java_lang_invoke_DelegatingMethodHandle_Holder, "java/lang/invoke/DelegatingMethodHandle$Holder") \
739 template(jdk_internal_loader_ClassLoaders, "jdk/internal/loader/ClassLoaders") \
740 template(jdk_internal_misc_CDS, "jdk/internal/misc/CDS") \
741 template(java_util_concurrent_ConcurrentHashMap, "java/util/concurrent/ConcurrentHashMap") \
742 template(java_util_ArrayList, "java/util/ArrayList") \
743 template(toFileURL_name, "toFileURL") \
744 template(toFileURL_signature, "(Ljava/lang/String;)Ljava/net/URL;") \
745 template(url_array_classloader_void_signature, "([Ljava/net/URL;Ljava/lang/ClassLoader;)V") \
746 \
747 /* Thread.dump_to_file jcmd */ \
748 template(jdk_internal_vm_ThreadDumper, "jdk/internal/vm/ThreadDumper") \
749 template(dumpThreads_name, "dumpThreads") \
750 template(dumpThreadsToJson_name, "dumpThreadsToJson") \
751
752 /*end*/
753
754 // enum for figuring positions and size of Symbol::_vm_symbols[]
755 enum class vmSymbolID : int {
756 // [FIRST_SID ... LAST_SID] is the iteration range for the *valid* symbols.
757 // NO_SID is used to indicate an invalid symbol. Some implementation code
758 // *may* read _vm_symbols[NO_SID], so it must be a valid array index.
759 NO_SID = 0, // exclusive lower limit
760
761 #define VM_SYMBOL_ENUM(name, string) VM_SYMBOL_ENUM_NAME_(name),
762 VM_SYMBOLS_DO(VM_SYMBOL_ENUM, VM_ALIAS_IGNORE)
763 #undef VM_SYMBOL_ENUM
764
765 SID_LIMIT, // exclusive upper limit
766
|
153 template(for_removal, "forRemoval") \
154 /* Java runtime version access */ \
155 template(java_lang_VersionProps, "java/lang/VersionProps") \
156 template(java_version_name, "java_version") \
157 template(java_runtime_name_name, "java_runtime_name") \
158 template(java_runtime_version_name, "java_runtime_version") \
159 template(java_runtime_vendor_version_name, "VENDOR_VERSION") \
160 template(java_runtime_vendor_vm_bug_url_name, "VENDOR_URL_VM_BUG") \
161 \
162 /* system initialization */ \
163 template(initPhase1_name, "initPhase1") \
164 template(initPhase2_name, "initPhase2") \
165 template(initPhase3_name, "initPhase3") \
166 template(java_lang_module_init_signature, "(Ljava/lang/ClassLoader;Ljava/lang/String;)V") \
167 \
168 /* class file format tags */ \
169 template(tag_source_file, "SourceFile") \
170 template(tag_inner_classes, "InnerClasses") \
171 template(tag_nest_members, "NestMembers") \
172 template(tag_nest_host, "NestHost") \
173 template(tag_loadable_descriptors, "LoadableDescriptors") \
174 template(tag_constant_value, "ConstantValue") \
175 template(tag_code, "Code") \
176 template(tag_exceptions, "Exceptions") \
177 template(tag_line_number_table, "LineNumberTable") \
178 template(tag_local_variable_table, "LocalVariableTable") \
179 template(tag_local_variable_type_table, "LocalVariableTypeTable") \
180 template(tag_method_parameters, "MethodParameters") \
181 template(tag_stack_map_table, "StackMapTable") \
182 template(tag_synthetic, "Synthetic") \
183 template(tag_deprecated, "Deprecated") \
184 template(tag_source_debug_extension, "SourceDebugExtension") \
185 template(tag_signature, "Signature") \
186 template(tag_record, "Record") \
187 template(tag_runtime_visible_annotations, "RuntimeVisibleAnnotations") \
188 template(tag_runtime_invisible_annotations, "RuntimeInvisibleAnnotations") \
189 template(tag_runtime_visible_parameter_annotations, "RuntimeVisibleParameterAnnotations") \
190 template(tag_runtime_invisible_parameter_annotations,"RuntimeInvisibleParameterAnnotations") \
191 template(tag_annotation_default, "AnnotationDefault") \
192 template(tag_runtime_visible_type_annotations, "RuntimeVisibleTypeAnnotations") \
193 template(tag_runtime_invisible_type_annotations, "RuntimeInvisibleTypeAnnotations") \
194 template(tag_enclosing_method, "EnclosingMethod") \
195 template(tag_bootstrap_methods, "BootstrapMethods") \
196 template(tag_permitted_subclasses, "PermittedSubclasses") \
197 \
198 /* exception klasses: at least all exceptions thrown by the VM have entries here */ \
199 template(java_lang_ArithmeticException, "java/lang/ArithmeticException") \
200 template(java_lang_ArrayIndexOutOfBoundsException, "java/lang/ArrayIndexOutOfBoundsException") \
201 template(java_lang_ArrayStoreException, "java/lang/ArrayStoreException") \
202 template(java_lang_ClassCastException, "java/lang/ClassCastException") \
203 template(java_lang_ClassNotFoundException, "java/lang/ClassNotFoundException") \
204 template(java_lang_CloneNotSupportedException, "java/lang/CloneNotSupportedException") \
205 template(java_lang_IllegalAccessException, "java/lang/IllegalAccessException") \
206 template(java_lang_IllegalArgumentException, "java/lang/IllegalArgumentException") \
207 template(java_lang_IllegalCallerException, "java/lang/IllegalCallerException") \
208 template(java_lang_IllegalStateException, "java/lang/IllegalStateException") \
209 template(java_lang_IllegalMonitorStateException, "java/lang/IllegalMonitorStateException") \
210 template(java_lang_IdentityException, "java/lang/IdentityException") \
211 template(java_lang_IllegalThreadStateException, "java/lang/IllegalThreadStateException") \
212 template(java_lang_IndexOutOfBoundsException, "java/lang/IndexOutOfBoundsException") \
213 template(java_lang_InstantiationException, "java/lang/InstantiationException") \
214 template(java_lang_InstantiationError, "java/lang/InstantiationError") \
215 template(java_lang_InterruptedException, "java/lang/InterruptedException") \
216 template(java_lang_BootstrapMethodError, "java/lang/BootstrapMethodError") \
217 template(java_lang_LinkageError, "java/lang/LinkageError") \
218 template(java_lang_NegativeArraySizeException, "java/lang/NegativeArraySizeException") \
219 template(java_lang_NoSuchMethodException, "java/lang/NoSuchMethodException") \
220 template(java_lang_NullPointerException, "java/lang/NullPointerException") \
221 template(java_lang_StringIndexOutOfBoundsException, "java/lang/StringIndexOutOfBoundsException")\
222 template(java_lang_UnsupportedOperationException, "java/lang/UnsupportedOperationException") \
223 template(java_lang_InvalidClassException, "java/lang/InvalidClassException") \
224 template(java_lang_reflect_InvocationTargetException, "java/lang/reflect/InvocationTargetException") \
225 template(java_lang_Exception, "java/lang/Exception") \
226 template(java_lang_RuntimeException, "java/lang/RuntimeException") \
227 template(java_io_IOException, "java/io/IOException") \
228 \
229 /* error klasses: at least all errors thrown by the VM have entries here */ \
230 template(java_lang_AbstractMethodError, "java/lang/AbstractMethodError") \
238 template(java_lang_InternalError, "java/lang/InternalError") \
239 template(java_lang_NoClassDefFoundError, "java/lang/NoClassDefFoundError") \
240 template(java_lang_NoSuchFieldError, "java/lang/NoSuchFieldError") \
241 template(java_lang_NoSuchMethodError, "java/lang/NoSuchMethodError") \
242 template(java_lang_OutOfMemoryError, "java/lang/OutOfMemoryError") \
243 template(java_lang_UnsatisfiedLinkError, "java/lang/UnsatisfiedLinkError") \
244 template(java_lang_VerifyError, "java/lang/VerifyError") \
245 template(java_lang_SecurityException, "java/lang/SecurityException") \
246 template(java_lang_VirtualMachineError, "java/lang/VirtualMachineError") \
247 template(java_lang_StackOverflowError, "java/lang/StackOverflowError") \
248 template(java_lang_StackTraceElement, "java/lang/StackTraceElement") \
249 \
250 /* Concurrency support */ \
251 template(java_util_concurrent_locks_AbstractOwnableSynchronizer, "java/util/concurrent/locks/AbstractOwnableSynchronizer") \
252 template(java_util_concurrent_atomic_AtomicIntegerFieldUpdater_Impl, "java/util/concurrent/atomic/AtomicIntegerFieldUpdater$AtomicIntegerFieldUpdaterImpl") \
253 template(java_util_concurrent_atomic_AtomicLongFieldUpdater_CASUpdater, "java/util/concurrent/atomic/AtomicLongFieldUpdater$CASUpdater") \
254 template(java_util_concurrent_atomic_AtomicLongFieldUpdater_LockedUpdater, "java/util/concurrent/atomic/AtomicLongFieldUpdater$LockedUpdater") \
255 template(java_util_concurrent_atomic_AtomicReferenceFieldUpdater_Impl, "java/util/concurrent/atomic/AtomicReferenceFieldUpdater$AtomicReferenceFieldUpdaterImpl") \
256 template(jdk_internal_vm_annotation_Contended_signature, "Ljdk/internal/vm/annotation/Contended;") \
257 template(jdk_internal_vm_annotation_ReservedStackAccess_signature, "Ljdk/internal/vm/annotation/ReservedStackAccess;") \
258 template(jdk_internal_vm_annotation_ImplicitlyConstructible_signature, "Ljdk/internal/vm/annotation/ImplicitlyConstructible;") \
259 template(jdk_internal_vm_annotation_LooselyConsistentValue_signature, "Ljdk/internal/vm/annotation/LooselyConsistentValue;") \
260 template(jdk_internal_vm_annotation_NullRestricted_signature, "Ljdk/internal/vm/annotation/NullRestricted;") \
261 template(jdk_internal_ValueBased_signature, "Ljdk/internal/ValueBased;") \
262 \
263 /* class symbols needed by intrinsics */ \
264 VM_INTRINSICS_DO(VM_INTRINSIC_IGNORE, template, VM_SYMBOL_IGNORE, VM_SYMBOL_IGNORE, VM_ALIAS_IGNORE) \
265 \
266 /* Support for reflection based on dynamic bytecode generation (JDK 1.4 and above) */ \
267 \
268 template(jdk_internal_reflect, "jdk/internal/reflect") \
269 template(reflect_MethodAccessorImpl, "jdk/internal/reflect/MethodAccessorImpl") \
270 template(reflect_DelegatingClassLoader, "jdk/internal/reflect/DelegatingClassLoader") \
271 template(reflect_Reflection, "jdk/internal/reflect/Reflection") \
272 template(reflect_CallerSensitive, "jdk/internal/reflect/CallerSensitive") \
273 template(reflect_CallerSensitive_signature, "Ljdk/internal/reflect/CallerSensitive;") \
274 template(reflect_DirectConstructorHandleAccessor_NativeAccessor, "jdk/internal/reflect/DirectConstructorHandleAccessor$NativeAccessor") \
275 template(reflect_SerializationConstructorAccessorImpl, "jdk/internal/reflect/SerializationConstructorAccessorImpl") \
276 template(clazz_name, "clazz") \
277 template(exceptionTypes_name, "exceptionTypes") \
278 template(modifiers_name, "modifiers") \
279 template(invokeBasic_name, "invokeBasic") \
280 template(linkToVirtual_name, "linkToVirtual") \
281 template(linkToStatic_name, "linkToStatic") \
282 template(linkToSpecial_name, "linkToSpecial") \
283 template(linkToInterface_name, "linkToInterface") \
284 template(linkToNative_name, "linkToNative") \
285 template(compiledLambdaForm_name, "<compiledLambdaForm>") /*fake name*/ \
286 template(star_name, "*") /*not really a name*/ \
287 template(invoke_name, "invoke") \
288 template(parameterTypes_name, "parameterTypes") \
289 template(returnType_name, "returnType") \
290 template(signature_name, "signature") \
291 template(slot_name, "slot") \
292 template(blackhole_name, "<blackhole>") /*fake name*/ \
293 \
294 /* Support for annotations (JDK 1.5 and above) */ \
295 \
296 template(annotations_name, "annotations") \
297 template(index_name, "index") \
298 template(executable_name, "executable") \
299 template(parameter_annotations_name, "parameterAnnotations") \
300 template(annotation_default_name, "annotationDefault") \
301 template(reflect_ConstantPool, "jdk/internal/reflect/ConstantPool") \
302 template(base_name, "base") \
303 /* Type Annotations (JDK 8 and above) */ \
304 template(type_annotations_name, "typeAnnotations") \
305 \
306 /* Intrinsic Annotation (JDK 9 and above) */ \
307 template(jdk_internal_vm_annotation_DontInline_signature, "Ljdk/internal/vm/annotation/DontInline;") \
308 template(jdk_internal_vm_annotation_ForceInline_signature, "Ljdk/internal/vm/annotation/ForceInline;") \
309 template(jdk_internal_vm_annotation_Hidden_signature, "Ljdk/internal/vm/annotation/Hidden;") \
310 template(jdk_internal_misc_Scoped_signature, "Ljdk/internal/misc/ScopedMemoryAccess$Scoped;") \
311 template(jdk_internal_vm_annotation_IntrinsicCandidate_signature, "Ljdk/internal/vm/annotation/IntrinsicCandidate;") \
496 template(input_stream_signature, "Ljava/io/InputStream;") \
497 template(print_stream_signature, "Ljava/io/PrintStream;") \
498 template(security_manager_signature, "Ljava/lang/SecurityManager;") \
499 template(defineOrCheckPackage_name, "defineOrCheckPackage") \
500 template(defineOrCheckPackage_signature, "(Ljava/lang/String;Ljava/util/jar/Manifest;Ljava/net/URL;)Ljava/lang/Package;") \
501 template(getProtectionDomain_name, "getProtectionDomain") \
502 template(getProtectionDomain_signature, "(Ljava/security/CodeSource;)Ljava/security/ProtectionDomain;") \
503 template(java_lang_Integer_array_signature, "[Ljava/lang/Integer;") \
504 template(java_lang_Long_array_signature, "[Ljava/lang/Long;") \
505 template(java_lang_Character_array_signature, "[Ljava/lang/Character;") \
506 template(java_lang_Short_array_signature, "[Ljava/lang/Short;") \
507 template(java_lang_Byte_array_signature, "[Ljava/lang/Byte;") \
508 template(java_lang_Boolean_signature, "Ljava/lang/Boolean;") \
509 template(url_code_signer_array_void_signature, "(Ljava/net/URL;[Ljava/security/CodeSigner;)V") \
510 template(jvmti_thread_state_name, "jvmti_thread_state") \
511 template(jvmti_VTMS_transition_disable_count_name, "jvmti_VTMS_transition_disable_count") \
512 template(jvmti_is_in_VTMS_transition_name, "jvmti_is_in_VTMS_transition") \
513 template(module_entry_name, "module_entry") \
514 template(resolved_references_name, "<resolved_references>") \
515 template(init_lock_name, "<init_lock>") \
516 template(default_value_name, ".default") \
517 template(null_reset_value_name, ".null_reset") \
518 template(empty_marker_name, ".empty") \
519 template(address_size_name, "ADDRESS_SIZE0") \
520 template(page_size_name, "PAGE_SIZE") \
521 template(big_endian_name, "BIG_ENDIAN") \
522 template(use_unaligned_access_name, "UNALIGNED_ACCESS") \
523 template(data_cache_line_flush_size_name, "DATA_CACHE_LINE_FLUSH_SIZE") \
524 template(during_unsafe_access_name, "during_unsafe_access") \
525 template(checkIndex_name, "checkIndex") \
526 template(jfr_epoch_name, "jfr_epoch") \
527 template(maxThawingSize_name, "maxThawingSize") \
528 \
529 /* name symbols needed by intrinsics */ \
530 VM_INTRINSICS_DO(VM_INTRINSIC_IGNORE, VM_SYMBOL_IGNORE, template, VM_SYMBOL_IGNORE, VM_ALIAS_IGNORE) \
531 \
532 /* common signatures names */ \
533 template(void_method_signature, "()V") \
534 template(void_boolean_signature, "()Z") \
535 template(void_byte_signature, "()B") \
536 template(void_char_signature, "()C") \
537 template(void_short_signature, "()S") \
538 template(void_int_signature, "()I") \
570 template(char_array_signature, "[C") \
571 template(int_array_signature, "[I") \
572 template(runnable_signature, "Ljava/lang/Runnable;") \
573 template(continuation_signature, "Ljdk/internal/vm/Continuation;") \
574 template(continuationscope_signature, "Ljdk/internal/vm/ContinuationScope;") \
575 template(stackchunk_signature, "Ljdk/internal/vm/StackChunk;") \
576 template(object_void_signature, "(Ljava/lang/Object;)V") \
577 template(object_int_signature, "(Ljava/lang/Object;)I") \
578 template(long_object_long_signature, "(JLjava/lang/Object;)J") \
579 template(object_boolean_signature, "(Ljava/lang/Object;)Z") \
580 template(object_object_signature, "(Ljava/lang/Object;)Ljava/lang/Object;") \
581 template(string_void_signature, "(Ljava/lang/String;)V") \
582 template(string_bool_byte_array_signature, "(Ljava/lang/String;Z)[B") \
583 template(throwable_signature, "Ljava/lang/Throwable;") \
584 template(throwable_void_signature, "(Ljava/lang/Throwable;)V") \
585 template(void_throwable_signature, "()Ljava/lang/Throwable;") \
586 template(class_void_signature, "(Ljava/lang/Class;)V") \
587 template(class_int_signature, "(Ljava/lang/Class;)I") \
588 template(class_long_signature, "(Ljava/lang/Class;)J") \
589 template(class_boolean_signature, "(Ljava/lang/Class;)Z") \
590 template(class_class_signature, "(Ljava/lang/Class;)Ljava/lang/Class;") \
591 template(throwable_throwable_signature, "(Ljava/lang/Throwable;)Ljava/lang/Throwable;") \
592 template(thread_void_signature, "(Ljava/lang/Thread;)V") \
593 template(runnable_void_signature, "(Ljava/lang/Runnable;)V") \
594 template(threadgroup_runnable_void_signature, "(Ljava/lang/ThreadGroup;Ljava/lang/Runnable;)V") \
595 template(threadgroup_string_void_signature, "(Ljava/lang/ThreadGroup;Ljava/lang/String;)V") \
596 template(void_threadgroup_array_signature, "()[Ljava/lang/ThreadGroup;") \
597 template(string_class_signature, "(Ljava/lang/String;)Ljava/lang/Class;") \
598 template(string_boolean_class_signature, "(Ljava/lang/String;Z)Ljava/lang/Class;") \
599 template(object_object_object_signature, "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;") \
600 template(object_object_boolean_signature, "(Ljava/lang/Object;Ljava/lang/Object;)Z") \
601 template(string_string_signature, "(Ljava/lang/String;)Ljava/lang/String;") \
602 template(classloader_class_string_string_long_signature, "(Ljava/lang/ClassLoader;Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;)J") \
603 template(byte_array_void_signature, "([B)V") \
604 template(long_long_void_signature, "(JJ)V") \
605 template(void_byte_array_signature, "()[B") \
606 template(void_classloader_signature, "()Ljava/lang/ClassLoader;") \
607 template(void_BuiltinClassLoader_signature, "()Ljdk/internal/loader/BuiltinClassLoader;") \
608 template(void_object_signature, "()Ljava/lang/Object;") \
609 template(void_class_signature, "()Ljava/lang/Class;") \
610 template(void_class_array_signature, "()[Ljava/lang/Class;") \
611 template(void_string_signature, "()Ljava/lang/String;") \
612 template(object_array_object_signature, "([Ljava/lang/Object;)Ljava/lang/Object;") \
613 template(object_object_array_object_signature, "(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;")\
614 template(protectiondomain_signature, "[Ljava/security/ProtectionDomain;") \
615 template(accesscontrolcontext_signature, "Ljava/security/AccessControlContext;") \
616 template(class_protectiondomain_signature, "(Ljava/lang/Class;Ljava/security/ProtectionDomain;)V") \
617 template(thread_signature, "Ljava/lang/Thread;") \
618 template(thread_fieldholder_signature, "Ljava/lang/Thread$FieldHolder;") \
619 template(threadgroup_signature, "Ljava/lang/ThreadGroup;") \
620 template(threadgroup_array_signature, "[Ljava/lang/ThreadGroup;") \
711 template(addUses_signature, "(Ljava/lang/Module;Ljava/lang/Class;)V") \
712 template(addProvides_name, "addProvides") \
713 template(addProvides_signature, "(Ljava/lang/Module;Ljava/lang/Class;Ljava/lang/Class;)V") \
714 template(loadModule_name, "loadModule") \
715 template(loadModule_signature, "(Ljava/lang/String;)Ljava/lang/Module;") \
716 template(transformedByAgent_name, "transformedByAgent") \
717 template(transformedByAgent_signature, "(Ljava/lang/Module;)V") \
718 template(appendToClassPathForInstrumentation_name, "appendToClassPathForInstrumentation") \
719 do_alias(appendToClassPathForInstrumentation_signature, string_void_signature) \
720 template(serializePropertiesToByteArray_name, "serializePropertiesToByteArray") \
721 template(serializeAgentPropertiesToByteArray_name, "serializeAgentPropertiesToByteArray") \
722 template(encodeThrowable_name, "encodeThrowable") \
723 template(encodeThrowable_signature, "(Ljava/lang/Throwable;JI)I") \
724 template(decodeAndThrowThrowable_name, "decodeAndThrowThrowable") \
725 template(encodeAnnotations_name, "encodeAnnotations") \
726 template(encodeAnnotations_signature, "([BLjava/lang/Class;Ljdk/internal/reflect/ConstantPool;Z[Ljava/lang/Class;)[B")\
727 template(decodeAndThrowThrowable_signature, "(IJZZ)V") \
728 template(classRedefinedCount_name, "classRedefinedCount") \
729 template(classLoader_name, "classLoader") \
730 template(componentType_name, "componentType") \
731 template(primaryType_name, "primaryType") \
732 template(secondaryType_name, "secondaryType") \
733 \
734 /* forEachRemaining support */ \
735 template(java_util_stream_StreamsRangeIntSpliterator, "java/util/stream/Streams$RangeIntSpliterator") \
736 \
737 /* jfr signatures */ \
738 JFR_TEMPLATES(template) \
739 \
740 /* CDS */ \
741 template(dumpSharedArchive, "dumpSharedArchive") \
742 template(dumpSharedArchive_signature, "(ZLjava/lang/String;)Ljava/lang/String;") \
743 template(generateLambdaFormHolderClasses, "generateLambdaFormHolderClasses") \
744 template(generateLambdaFormHolderClasses_signature, "([Ljava/lang/String;)[Ljava/lang/Object;") \
745 template(java_lang_Enum, "java/lang/Enum") \
746 template(java_lang_invoke_Invokers_Holder, "java/lang/invoke/Invokers$Holder") \
747 template(java_lang_invoke_DirectMethodHandle_Holder, "java/lang/invoke/DirectMethodHandle$Holder") \
748 template(java_lang_invoke_LambdaForm_Holder, "java/lang/invoke/LambdaForm$Holder") \
749 template(java_lang_invoke_DelegatingMethodHandle_Holder, "java/lang/invoke/DelegatingMethodHandle$Holder") \
750 template(jdk_internal_loader_ClassLoaders, "jdk/internal/loader/ClassLoaders") \
751 template(jdk_internal_misc_CDS, "jdk/internal/misc/CDS") \
752 template(java_util_concurrent_ConcurrentHashMap, "java/util/concurrent/ConcurrentHashMap") \
753 template(java_util_ArrayList, "java/util/ArrayList") \
754 template(toFileURL_name, "toFileURL") \
755 template(toFileURL_signature, "(Ljava/lang/String;)Ljava/net/URL;") \
756 template(url_array_classloader_void_signature, "([Ljava/net/URL;Ljava/lang/ClassLoader;)V") \
757 \
758 template(java_lang_runtime_ValueObjectMethods, "java/lang/runtime/ValueObjectMethods") \
759 template(isSubstitutable_name, "isSubstitutable") \
760 template(valueObjectHashCode_name, "valueObjectHashCode") \
761 template(jdk_internal_value_PrimitiveClass, "jdk/internal/value/PrimitiveClass") \
762 template(jdk_internal_value_ValueClass, "jdk/internal/value/ValueClass") \
763 \
764 /* Thread.dump_to_file jcmd */ \
765 template(jdk_internal_vm_ThreadDumper, "jdk/internal/vm/ThreadDumper") \
766 template(dumpThreads_name, "dumpThreads") \
767 template(dumpThreadsToJson_name, "dumpThreadsToJson") \
768
769 /*end*/
770
771 // enum for figuring positions and size of Symbol::_vm_symbols[]
772 enum class vmSymbolID : int {
773 // [FIRST_SID ... LAST_SID] is the iteration range for the *valid* symbols.
774 // NO_SID is used to indicate an invalid symbol. Some implementation code
775 // *may* read _vm_symbols[NO_SID], so it must be a valid array index.
776 NO_SID = 0, // exclusive lower limit
777
778 #define VM_SYMBOL_ENUM(name, string) VM_SYMBOL_ENUM_NAME_(name),
779 VM_SYMBOLS_DO(VM_SYMBOL_ENUM, VM_ALIAS_IGNORE)
780 #undef VM_SYMBOL_ENUM
781
782 SID_LIMIT, // exclusive upper limit
783
|