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_Reflection, "jdk/internal/reflect/Reflection") \
266 template(reflect_CallerSensitive, "jdk/internal/reflect/CallerSensitive") \
267 template(reflect_CallerSensitive_signature, "Ljdk/internal/reflect/CallerSensitive;") \
268 template(reflect_DirectConstructorHandleAccessor_NativeAccessor, "jdk/internal/reflect/DirectConstructorHandleAccessor$NativeAccessor") \
269 template(clazz_name, "clazz") \
270 template(exceptionTypes_name, "exceptionTypes") \
271 template(modifiers_name, "modifiers") \
272 template(invokeBasic_name, "invokeBasic") \
273 template(linkToVirtual_name, "linkToVirtual") \
274 template(linkToStatic_name, "linkToStatic") \
275 template(linkToSpecial_name, "linkToSpecial") \
276 template(linkToInterface_name, "linkToInterface") \
277 template(linkToNative_name, "linkToNative") \
278 template(compiledLambdaForm_name, "<compiledLambdaForm>") /*fake name*/ \
279 template(star_name, "*") /*not really a name*/ \
280 template(invoke_name, "invoke") \
281 template(parameterTypes_name, "parameterTypes") \
282 template(returnType_name, "returnType") \
283 template(signature_name, "signature") \
284 template(slot_name, "slot") \
285 template(trusted_final_name, "trustedFinal") \
286 template(blackhole_name, "<blackhole>") /*fake name*/ \
287 \
288 /* Support for annotations (JDK 1.5 and above) */ \
289 \
290 template(annotations_name, "annotations") \
291 template(index_name, "index") \
292 template(executable_name, "executable") \
293 template(parameter_annotations_name, "parameterAnnotations") \
294 template(annotation_default_name, "annotationDefault") \
295 template(reflect_ConstantPool, "jdk/internal/reflect/ConstantPool") \
296 template(base_name, "base") \
297 /* Type Annotations (JDK 8 and above) */ \
298 template(type_annotations_name, "typeAnnotations") \
299 \
300 /* Intrinsic Annotation (JDK 9 and above) */ \
301 template(jdk_internal_vm_annotation_DontInline_signature, "Ljdk/internal/vm/annotation/DontInline;") \
302 template(jdk_internal_vm_annotation_ForceInline_signature, "Ljdk/internal/vm/annotation/ForceInline;") \
303 template(jdk_internal_vm_annotation_Hidden_signature, "Ljdk/internal/vm/annotation/Hidden;") \
304 template(jdk_internal_misc_Scoped_signature, "Ljdk/internal/misc/ScopedMemoryAccess$Scoped;") \
305 template(jdk_internal_vm_annotation_IntrinsicCandidate_signature, "Ljdk/internal/vm/annotation/IntrinsicCandidate;") \
490 template(input_stream_signature, "Ljava/io/InputStream;") \
491 template(print_stream_signature, "Ljava/io/PrintStream;") \
492 template(security_manager_signature, "Ljava/lang/SecurityManager;") \
493 template(defineOrCheckPackage_name, "defineOrCheckPackage") \
494 template(defineOrCheckPackage_signature, "(Ljava/lang/String;Ljava/util/jar/Manifest;Ljava/net/URL;)Ljava/lang/Package;") \
495 template(getProtectionDomain_name, "getProtectionDomain") \
496 template(getProtectionDomain_signature, "(Ljava/security/CodeSource;)Ljava/security/ProtectionDomain;") \
497 template(java_lang_Integer_array_signature, "[Ljava/lang/Integer;") \
498 template(java_lang_Long_array_signature, "[Ljava/lang/Long;") \
499 template(java_lang_Character_array_signature, "[Ljava/lang/Character;") \
500 template(java_lang_Short_array_signature, "[Ljava/lang/Short;") \
501 template(java_lang_Byte_array_signature, "[Ljava/lang/Byte;") \
502 template(java_lang_Boolean_signature, "Ljava/lang/Boolean;") \
503 template(url_code_signer_array_void_signature, "(Ljava/net/URL;[Ljava/security/CodeSigner;)V") \
504 template(jvmti_thread_state_name, "jvmti_thread_state") \
505 template(jvmti_VTMS_transition_disable_count_name, "jvmti_VTMS_transition_disable_count") \
506 template(jvmti_is_in_VTMS_transition_name, "jvmti_is_in_VTMS_transition") \
507 template(module_entry_name, "module_entry") \
508 template(resolved_references_name, "<resolved_references>") \
509 template(init_lock_name, "<init_lock>") \
510 template(address_size_name, "ADDRESS_SIZE0") \
511 template(page_size_name, "PAGE_SIZE") \
512 template(big_endian_name, "BIG_ENDIAN") \
513 template(use_unaligned_access_name, "UNALIGNED_ACCESS") \
514 template(data_cache_line_flush_size_name, "DATA_CACHE_LINE_FLUSH_SIZE") \
515 template(during_unsafe_access_name, "during_unsafe_access") \
516 template(checkIndex_name, "checkIndex") \
517 template(jfr_epoch_name, "jfr_epoch") \
518 template(maxThawingSize_name, "maxThawingSize") \
519 \
520 /* name symbols needed by intrinsics */ \
521 VM_INTRINSICS_DO(VM_INTRINSIC_IGNORE, VM_SYMBOL_IGNORE, template, VM_SYMBOL_IGNORE, VM_ALIAS_IGNORE) \
522 \
523 /* common signatures names */ \
524 template(void_method_signature, "()V") \
525 template(void_boolean_signature, "()Z") \
526 template(void_byte_signature, "()B") \
527 template(void_char_signature, "()C") \
528 template(void_short_signature, "()S") \
529 template(void_int_signature, "()I") \
561 template(char_array_signature, "[C") \
562 template(int_array_signature, "[I") \
563 template(runnable_signature, "Ljava/lang/Runnable;") \
564 template(continuation_signature, "Ljdk/internal/vm/Continuation;") \
565 template(continuationscope_signature, "Ljdk/internal/vm/ContinuationScope;") \
566 template(stackchunk_signature, "Ljdk/internal/vm/StackChunk;") \
567 template(object_void_signature, "(Ljava/lang/Object;)V") \
568 template(object_int_signature, "(Ljava/lang/Object;)I") \
569 template(long_object_long_signature, "(JLjava/lang/Object;)J") \
570 template(object_boolean_signature, "(Ljava/lang/Object;)Z") \
571 template(object_object_signature, "(Ljava/lang/Object;)Ljava/lang/Object;") \
572 template(string_void_signature, "(Ljava/lang/String;)V") \
573 template(string_bool_byte_array_signature, "(Ljava/lang/String;Z)[B") \
574 template(throwable_signature, "Ljava/lang/Throwable;") \
575 template(throwable_void_signature, "(Ljava/lang/Throwable;)V") \
576 template(void_throwable_signature, "()Ljava/lang/Throwable;") \
577 template(class_void_signature, "(Ljava/lang/Class;)V") \
578 template(class_int_signature, "(Ljava/lang/Class;)I") \
579 template(class_long_signature, "(Ljava/lang/Class;)J") \
580 template(class_boolean_signature, "(Ljava/lang/Class;)Z") \
581 template(throwable_throwable_signature, "(Ljava/lang/Throwable;)Ljava/lang/Throwable;") \
582 template(thread_void_signature, "(Ljava/lang/Thread;)V") \
583 template(runnable_void_signature, "(Ljava/lang/Runnable;)V") \
584 template(threadgroup_runnable_void_signature, "(Ljava/lang/ThreadGroup;Ljava/lang/Runnable;)V") \
585 template(threadgroup_string_void_signature, "(Ljava/lang/ThreadGroup;Ljava/lang/String;)V") \
586 template(void_threadgroup_array_signature, "()[Ljava/lang/ThreadGroup;") \
587 template(string_class_signature, "(Ljava/lang/String;)Ljava/lang/Class;") \
588 template(string_boolean_class_signature, "(Ljava/lang/String;Z)Ljava/lang/Class;") \
589 template(object_object_object_signature, "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;") \
590 template(string_string_signature, "(Ljava/lang/String;)Ljava/lang/String;") \
591 template(classloader_class_string_string_long_signature, "(Ljava/lang/ClassLoader;Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;)J") \
592 template(byte_array_void_signature, "([B)V") \
593 template(long_long_void_signature, "(JJ)V") \
594 template(void_byte_array_signature, "()[B") \
595 template(void_classloader_signature, "()Ljava/lang/ClassLoader;") \
596 template(void_BuiltinClassLoader_signature, "()Ljdk/internal/loader/BuiltinClassLoader;") \
597 template(void_object_signature, "()Ljava/lang/Object;") \
598 template(void_class_signature, "()Ljava/lang/Class;") \
599 template(void_class_array_signature, "()[Ljava/lang/Class;") \
600 template(void_string_signature, "()Ljava/lang/String;") \
601 template(object_array_object_signature, "([Ljava/lang/Object;)Ljava/lang/Object;") \
602 template(object_object_array_object_signature, "(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;")\
603 template(protectiondomain_signature, "[Ljava/security/ProtectionDomain;") \
604 template(accesscontrolcontext_signature, "Ljava/security/AccessControlContext;") \
605 template(class_protectiondomain_signature, "(Ljava/lang/Class;Ljava/security/ProtectionDomain;)V") \
606 template(thread_signature, "Ljava/lang/Thread;") \
607 template(thread_fieldholder_signature, "Ljava/lang/Thread$FieldHolder;") \
608 template(threadgroup_signature, "Ljava/lang/ThreadGroup;") \
609 template(threadgroup_array_signature, "[Ljava/lang/ThreadGroup;") \
700 template(addUses_signature, "(Ljava/lang/Module;Ljava/lang/Class;)V") \
701 template(addProvides_name, "addProvides") \
702 template(addProvides_signature, "(Ljava/lang/Module;Ljava/lang/Class;Ljava/lang/Class;)V") \
703 template(loadModule_name, "loadModule") \
704 template(loadModule_signature, "(Ljava/lang/String;)Ljava/lang/Module;") \
705 template(transformedByAgent_name, "transformedByAgent") \
706 template(transformedByAgent_signature, "(Ljava/lang/Module;)V") \
707 template(appendToClassPathForInstrumentation_name, "appendToClassPathForInstrumentation") \
708 do_alias(appendToClassPathForInstrumentation_signature, string_void_signature) \
709 template(serializePropertiesToByteArray_name, "serializePropertiesToByteArray") \
710 template(serializeAgentPropertiesToByteArray_name, "serializeAgentPropertiesToByteArray") \
711 template(encodeThrowable_name, "encodeThrowable") \
712 template(encodeThrowable_signature, "(Ljava/lang/Throwable;JI)I") \
713 template(decodeAndThrowThrowable_name, "decodeAndThrowThrowable") \
714 template(encodeAnnotations_name, "encodeAnnotations") \
715 template(encodeAnnotations_signature, "([BLjava/lang/Class;Ljdk/internal/reflect/ConstantPool;Z[Ljava/lang/Class;)[B")\
716 template(decodeAndThrowThrowable_signature, "(IJZZ)V") \
717 template(classRedefinedCount_name, "classRedefinedCount") \
718 template(classLoader_name, "classLoader") \
719 template(componentType_name, "componentType") \
720 \
721 /* forEachRemaining support */ \
722 template(java_util_stream_StreamsRangeIntSpliterator, "java/util/stream/Streams$RangeIntSpliterator") \
723 \
724 /* jfr signatures */ \
725 JFR_TEMPLATES(template) \
726 \
727 /* CDS */ \
728 template(dumpSharedArchive, "dumpSharedArchive") \
729 template(dumpSharedArchive_signature, "(ZLjava/lang/String;)Ljava/lang/String;") \
730 template(generateLambdaFormHolderClasses, "generateLambdaFormHolderClasses") \
731 template(generateLambdaFormHolderClasses_signature, "([Ljava/lang/String;)[Ljava/lang/Object;") \
732 template(java_lang_Enum, "java/lang/Enum") \
733 template(java_lang_invoke_Invokers_Holder, "java/lang/invoke/Invokers$Holder") \
734 template(java_lang_invoke_DirectMethodHandle_Holder, "java/lang/invoke/DirectMethodHandle$Holder") \
735 template(java_lang_invoke_LambdaForm_Holder, "java/lang/invoke/LambdaForm$Holder") \
736 template(java_lang_invoke_DelegatingMethodHandle_Holder, "java/lang/invoke/DelegatingMethodHandle$Holder") \
737 template(jdk_internal_loader_ClassLoaders, "jdk/internal/loader/ClassLoaders") \
738 template(jdk_internal_misc_CDS, "jdk/internal/misc/CDS") \
739 template(java_util_concurrent_ConcurrentHashMap, "java/util/concurrent/ConcurrentHashMap") \
740 template(java_util_ArrayList, "java/util/ArrayList") \
741 template(toFileURL_name, "toFileURL") \
742 template(toFileURL_signature, "(Ljava/lang/String;)Ljava/net/URL;") \
743 template(url_array_classloader_void_signature, "([Ljava/net/URL;Ljava/lang/ClassLoader;)V") \
744 \
745 /* Thread.dump_to_file jcmd */ \
746 template(jdk_internal_vm_ThreadDumper, "jdk/internal/vm/ThreadDumper") \
747 template(dumpThreads_name, "dumpThreads") \
748 template(dumpThreadsToJson_name, "dumpThreadsToJson") \
749
750 /*end*/
751
752 // enum for figuring positions and size of Symbol::_vm_symbols[]
753 enum class vmSymbolID : int {
754 // [FIRST_SID ... LAST_SID] is the iteration range for the *valid* symbols.
755 // NO_SID is used to indicate an invalid symbol. Some implementation code
756 // *may* read _vm_symbols[NO_SID], so it must be a valid array index.
757 NO_SID = 0, // exclusive lower limit
758
759 #define VM_SYMBOL_ENUM(name, string) VM_SYMBOL_ENUM_NAME_(name),
760 VM_SYMBOLS_DO(VM_SYMBOL_ENUM, VM_ALIAS_IGNORE)
761 #undef VM_SYMBOL_ENUM
762
763 SID_LIMIT, // exclusive upper limit
764
|
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_Reflection, "jdk/internal/reflect/Reflection") \
271 template(reflect_CallerSensitive, "jdk/internal/reflect/CallerSensitive") \
272 template(reflect_CallerSensitive_signature, "Ljdk/internal/reflect/CallerSensitive;") \
273 template(reflect_DirectConstructorHandleAccessor_NativeAccessor, "jdk/internal/reflect/DirectConstructorHandleAccessor$NativeAccessor") \
274 template(clazz_name, "clazz") \
275 template(exceptionTypes_name, "exceptionTypes") \
276 template(modifiers_name, "modifiers") \
277 template(invokeBasic_name, "invokeBasic") \
278 template(linkToVirtual_name, "linkToVirtual") \
279 template(linkToStatic_name, "linkToStatic") \
280 template(linkToSpecial_name, "linkToSpecial") \
281 template(linkToInterface_name, "linkToInterface") \
282 template(linkToNative_name, "linkToNative") \
283 template(compiledLambdaForm_name, "<compiledLambdaForm>") /*fake name*/ \
284 template(star_name, "*") /*not really a name*/ \
285 template(invoke_name, "invoke") \
286 template(parameterTypes_name, "parameterTypes") \
287 template(returnType_name, "returnType") \
288 template(signature_name, "signature") \
289 template(slot_name, "slot") \
290 template(blackhole_name, "<blackhole>") /*fake name*/ \
291 \
292 /* Support for annotations (JDK 1.5 and above) */ \
293 \
294 template(annotations_name, "annotations") \
295 template(index_name, "index") \
296 template(executable_name, "executable") \
297 template(parameter_annotations_name, "parameterAnnotations") \
298 template(annotation_default_name, "annotationDefault") \
299 template(reflect_ConstantPool, "jdk/internal/reflect/ConstantPool") \
300 template(base_name, "base") \
301 /* Type Annotations (JDK 8 and above) */ \
302 template(type_annotations_name, "typeAnnotations") \
303 \
304 /* Intrinsic Annotation (JDK 9 and above) */ \
305 template(jdk_internal_vm_annotation_DontInline_signature, "Ljdk/internal/vm/annotation/DontInline;") \
306 template(jdk_internal_vm_annotation_ForceInline_signature, "Ljdk/internal/vm/annotation/ForceInline;") \
307 template(jdk_internal_vm_annotation_Hidden_signature, "Ljdk/internal/vm/annotation/Hidden;") \
308 template(jdk_internal_misc_Scoped_signature, "Ljdk/internal/misc/ScopedMemoryAccess$Scoped;") \
309 template(jdk_internal_vm_annotation_IntrinsicCandidate_signature, "Ljdk/internal/vm/annotation/IntrinsicCandidate;") \
494 template(input_stream_signature, "Ljava/io/InputStream;") \
495 template(print_stream_signature, "Ljava/io/PrintStream;") \
496 template(security_manager_signature, "Ljava/lang/SecurityManager;") \
497 template(defineOrCheckPackage_name, "defineOrCheckPackage") \
498 template(defineOrCheckPackage_signature, "(Ljava/lang/String;Ljava/util/jar/Manifest;Ljava/net/URL;)Ljava/lang/Package;") \
499 template(getProtectionDomain_name, "getProtectionDomain") \
500 template(getProtectionDomain_signature, "(Ljava/security/CodeSource;)Ljava/security/ProtectionDomain;") \
501 template(java_lang_Integer_array_signature, "[Ljava/lang/Integer;") \
502 template(java_lang_Long_array_signature, "[Ljava/lang/Long;") \
503 template(java_lang_Character_array_signature, "[Ljava/lang/Character;") \
504 template(java_lang_Short_array_signature, "[Ljava/lang/Short;") \
505 template(java_lang_Byte_array_signature, "[Ljava/lang/Byte;") \
506 template(java_lang_Boolean_signature, "Ljava/lang/Boolean;") \
507 template(url_code_signer_array_void_signature, "(Ljava/net/URL;[Ljava/security/CodeSigner;)V") \
508 template(jvmti_thread_state_name, "jvmti_thread_state") \
509 template(jvmti_VTMS_transition_disable_count_name, "jvmti_VTMS_transition_disable_count") \
510 template(jvmti_is_in_VTMS_transition_name, "jvmti_is_in_VTMS_transition") \
511 template(module_entry_name, "module_entry") \
512 template(resolved_references_name, "<resolved_references>") \
513 template(init_lock_name, "<init_lock>") \
514 template(default_value_name, ".default") \
515 template(null_reset_value_name, ".null_reset") \
516 template(empty_marker_name, ".empty") \
517 template(address_size_name, "ADDRESS_SIZE0") \
518 template(page_size_name, "PAGE_SIZE") \
519 template(big_endian_name, "BIG_ENDIAN") \
520 template(use_unaligned_access_name, "UNALIGNED_ACCESS") \
521 template(data_cache_line_flush_size_name, "DATA_CACHE_LINE_FLUSH_SIZE") \
522 template(during_unsafe_access_name, "during_unsafe_access") \
523 template(checkIndex_name, "checkIndex") \
524 template(jfr_epoch_name, "jfr_epoch") \
525 template(maxThawingSize_name, "maxThawingSize") \
526 \
527 /* name symbols needed by intrinsics */ \
528 VM_INTRINSICS_DO(VM_INTRINSIC_IGNORE, VM_SYMBOL_IGNORE, template, VM_SYMBOL_IGNORE, VM_ALIAS_IGNORE) \
529 \
530 /* common signatures names */ \
531 template(void_method_signature, "()V") \
532 template(void_boolean_signature, "()Z") \
533 template(void_byte_signature, "()B") \
534 template(void_char_signature, "()C") \
535 template(void_short_signature, "()S") \
536 template(void_int_signature, "()I") \
568 template(char_array_signature, "[C") \
569 template(int_array_signature, "[I") \
570 template(runnable_signature, "Ljava/lang/Runnable;") \
571 template(continuation_signature, "Ljdk/internal/vm/Continuation;") \
572 template(continuationscope_signature, "Ljdk/internal/vm/ContinuationScope;") \
573 template(stackchunk_signature, "Ljdk/internal/vm/StackChunk;") \
574 template(object_void_signature, "(Ljava/lang/Object;)V") \
575 template(object_int_signature, "(Ljava/lang/Object;)I") \
576 template(long_object_long_signature, "(JLjava/lang/Object;)J") \
577 template(object_boolean_signature, "(Ljava/lang/Object;)Z") \
578 template(object_object_signature, "(Ljava/lang/Object;)Ljava/lang/Object;") \
579 template(string_void_signature, "(Ljava/lang/String;)V") \
580 template(string_bool_byte_array_signature, "(Ljava/lang/String;Z)[B") \
581 template(throwable_signature, "Ljava/lang/Throwable;") \
582 template(throwable_void_signature, "(Ljava/lang/Throwable;)V") \
583 template(void_throwable_signature, "()Ljava/lang/Throwable;") \
584 template(class_void_signature, "(Ljava/lang/Class;)V") \
585 template(class_int_signature, "(Ljava/lang/Class;)I") \
586 template(class_long_signature, "(Ljava/lang/Class;)J") \
587 template(class_boolean_signature, "(Ljava/lang/Class;)Z") \
588 template(class_class_signature, "(Ljava/lang/Class;)Ljava/lang/Class;") \
589 template(throwable_throwable_signature, "(Ljava/lang/Throwable;)Ljava/lang/Throwable;") \
590 template(thread_void_signature, "(Ljava/lang/Thread;)V") \
591 template(runnable_void_signature, "(Ljava/lang/Runnable;)V") \
592 template(threadgroup_runnable_void_signature, "(Ljava/lang/ThreadGroup;Ljava/lang/Runnable;)V") \
593 template(threadgroup_string_void_signature, "(Ljava/lang/ThreadGroup;Ljava/lang/String;)V") \
594 template(void_threadgroup_array_signature, "()[Ljava/lang/ThreadGroup;") \
595 template(string_class_signature, "(Ljava/lang/String;)Ljava/lang/Class;") \
596 template(string_boolean_class_signature, "(Ljava/lang/String;Z)Ljava/lang/Class;") \
597 template(object_object_object_signature, "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;") \
598 template(object_object_boolean_signature, "(Ljava/lang/Object;Ljava/lang/Object;)Z") \
599 template(string_string_signature, "(Ljava/lang/String;)Ljava/lang/String;") \
600 template(classloader_class_string_string_long_signature, "(Ljava/lang/ClassLoader;Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;)J") \
601 template(byte_array_void_signature, "([B)V") \
602 template(long_long_void_signature, "(JJ)V") \
603 template(void_byte_array_signature, "()[B") \
604 template(void_classloader_signature, "()Ljava/lang/ClassLoader;") \
605 template(void_BuiltinClassLoader_signature, "()Ljdk/internal/loader/BuiltinClassLoader;") \
606 template(void_object_signature, "()Ljava/lang/Object;") \
607 template(void_class_signature, "()Ljava/lang/Class;") \
608 template(void_class_array_signature, "()[Ljava/lang/Class;") \
609 template(void_string_signature, "()Ljava/lang/String;") \
610 template(object_array_object_signature, "([Ljava/lang/Object;)Ljava/lang/Object;") \
611 template(object_object_array_object_signature, "(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;")\
612 template(protectiondomain_signature, "[Ljava/security/ProtectionDomain;") \
613 template(accesscontrolcontext_signature, "Ljava/security/AccessControlContext;") \
614 template(class_protectiondomain_signature, "(Ljava/lang/Class;Ljava/security/ProtectionDomain;)V") \
615 template(thread_signature, "Ljava/lang/Thread;") \
616 template(thread_fieldholder_signature, "Ljava/lang/Thread$FieldHolder;") \
617 template(threadgroup_signature, "Ljava/lang/ThreadGroup;") \
618 template(threadgroup_array_signature, "[Ljava/lang/ThreadGroup;") \
709 template(addUses_signature, "(Ljava/lang/Module;Ljava/lang/Class;)V") \
710 template(addProvides_name, "addProvides") \
711 template(addProvides_signature, "(Ljava/lang/Module;Ljava/lang/Class;Ljava/lang/Class;)V") \
712 template(loadModule_name, "loadModule") \
713 template(loadModule_signature, "(Ljava/lang/String;)Ljava/lang/Module;") \
714 template(transformedByAgent_name, "transformedByAgent") \
715 template(transformedByAgent_signature, "(Ljava/lang/Module;)V") \
716 template(appendToClassPathForInstrumentation_name, "appendToClassPathForInstrumentation") \
717 do_alias(appendToClassPathForInstrumentation_signature, string_void_signature) \
718 template(serializePropertiesToByteArray_name, "serializePropertiesToByteArray") \
719 template(serializeAgentPropertiesToByteArray_name, "serializeAgentPropertiesToByteArray") \
720 template(encodeThrowable_name, "encodeThrowable") \
721 template(encodeThrowable_signature, "(Ljava/lang/Throwable;JI)I") \
722 template(decodeAndThrowThrowable_name, "decodeAndThrowThrowable") \
723 template(encodeAnnotations_name, "encodeAnnotations") \
724 template(encodeAnnotations_signature, "([BLjava/lang/Class;Ljdk/internal/reflect/ConstantPool;Z[Ljava/lang/Class;)[B")\
725 template(decodeAndThrowThrowable_signature, "(IJZZ)V") \
726 template(classRedefinedCount_name, "classRedefinedCount") \
727 template(classLoader_name, "classLoader") \
728 template(componentType_name, "componentType") \
729 template(primaryType_name, "primaryType") \
730 template(secondaryType_name, "secondaryType") \
731 \
732 /* forEachRemaining support */ \
733 template(java_util_stream_StreamsRangeIntSpliterator, "java/util/stream/Streams$RangeIntSpliterator") \
734 \
735 /* jfr signatures */ \
736 JFR_TEMPLATES(template) \
737 \
738 /* CDS */ \
739 template(dumpSharedArchive, "dumpSharedArchive") \
740 template(dumpSharedArchive_signature, "(ZLjava/lang/String;)Ljava/lang/String;") \
741 template(generateLambdaFormHolderClasses, "generateLambdaFormHolderClasses") \
742 template(generateLambdaFormHolderClasses_signature, "([Ljava/lang/String;)[Ljava/lang/Object;") \
743 template(java_lang_Enum, "java/lang/Enum") \
744 template(java_lang_invoke_Invokers_Holder, "java/lang/invoke/Invokers$Holder") \
745 template(java_lang_invoke_DirectMethodHandle_Holder, "java/lang/invoke/DirectMethodHandle$Holder") \
746 template(java_lang_invoke_LambdaForm_Holder, "java/lang/invoke/LambdaForm$Holder") \
747 template(java_lang_invoke_DelegatingMethodHandle_Holder, "java/lang/invoke/DelegatingMethodHandle$Holder") \
748 template(jdk_internal_loader_ClassLoaders, "jdk/internal/loader/ClassLoaders") \
749 template(jdk_internal_misc_CDS, "jdk/internal/misc/CDS") \
750 template(java_util_concurrent_ConcurrentHashMap, "java/util/concurrent/ConcurrentHashMap") \
751 template(java_util_ArrayList, "java/util/ArrayList") \
752 template(toFileURL_name, "toFileURL") \
753 template(toFileURL_signature, "(Ljava/lang/String;)Ljava/net/URL;") \
754 template(url_array_classloader_void_signature, "([Ljava/net/URL;Ljava/lang/ClassLoader;)V") \
755 \
756 template(java_lang_runtime_ValueObjectMethods, "java/lang/runtime/ValueObjectMethods") \
757 template(isSubstitutable_name, "isSubstitutable") \
758 template(valueObjectHashCode_name, "valueObjectHashCode") \
759 template(jdk_internal_value_PrimitiveClass, "jdk/internal/value/PrimitiveClass") \
760 template(jdk_internal_value_ValueClass, "jdk/internal/value/ValueClass") \
761 \
762 /* Thread.dump_to_file jcmd */ \
763 template(jdk_internal_vm_ThreadDumper, "jdk/internal/vm/ThreadDumper") \
764 template(dumpThreads_name, "dumpThreads") \
765 template(dumpThreadsToJson_name, "dumpThreadsToJson") \
766
767 /*end*/
768
769 // enum for figuring positions and size of Symbol::_vm_symbols[]
770 enum class vmSymbolID : int {
771 // [FIRST_SID ... LAST_SID] is the iteration range for the *valid* symbols.
772 // NO_SID is used to indicate an invalid symbol. Some implementation code
773 // *may* read _vm_symbols[NO_SID], so it must be a valid array index.
774 NO_SID = 0, // exclusive lower limit
775
776 #define VM_SYMBOL_ENUM(name, string) VM_SYMBOL_ENUM_NAME_(name),
777 VM_SYMBOLS_DO(VM_SYMBOL_ENUM, VM_ALIAS_IGNORE)
778 #undef VM_SYMBOL_ENUM
779
780 SID_LIMIT, // exclusive upper limit
781
|