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_IllegalStateException, "java/lang/IllegalStateException") \
207 template(java_lang_IllegalMonitorStateException, "java/lang/IllegalMonitorStateException") \
208 template(java_lang_IllegalThreadStateException, "java/lang/IllegalThreadStateException") \
209 template(java_lang_IndexOutOfBoundsException, "java/lang/IndexOutOfBoundsException") \
210 template(java_lang_InstantiationException, "java/lang/InstantiationException") \
211 template(java_lang_InstantiationError, "java/lang/InstantiationError") \
212 template(java_lang_InterruptedException, "java/lang/InterruptedException") \
213 template(java_lang_BootstrapMethodError, "java/lang/BootstrapMethodError") \
214 template(java_lang_LinkageError, "java/lang/LinkageError") \
215 template(java_lang_NegativeArraySizeException, "java/lang/NegativeArraySizeException") \
216 template(java_lang_NoSuchMethodException, "java/lang/NoSuchMethodException") \
217 template(java_lang_NullPointerException, "java/lang/NullPointerException") \
218 template(java_lang_StringIndexOutOfBoundsException, "java/lang/StringIndexOutOfBoundsException")\
219 template(java_lang_UnsupportedOperationException, "java/lang/UnsupportedOperationException") \
220 template(java_lang_InvalidClassException, "java/lang/InvalidClassException") \
221 template(java_lang_reflect_InvocationTargetException, "java/lang/reflect/InvocationTargetException") \
222 template(java_lang_Exception, "java/lang/Exception") \
223 template(java_lang_RuntimeException, "java/lang/RuntimeException") \
224 template(java_io_IOException, "java/io/IOException") \
225 \
226 /* error klasses: at least all errors thrown by the VM have entries here */ \
227 template(java_lang_AbstractMethodError, "java/lang/AbstractMethodError") \
235 template(java_lang_InternalError, "java/lang/InternalError") \
236 template(java_lang_NoClassDefFoundError, "java/lang/NoClassDefFoundError") \
237 template(java_lang_NoSuchFieldError, "java/lang/NoSuchFieldError") \
238 template(java_lang_NoSuchMethodError, "java/lang/NoSuchMethodError") \
239 template(java_lang_OutOfMemoryError, "java/lang/OutOfMemoryError") \
240 template(java_lang_UnsatisfiedLinkError, "java/lang/UnsatisfiedLinkError") \
241 template(java_lang_VerifyError, "java/lang/VerifyError") \
242 template(java_lang_SecurityException, "java/lang/SecurityException") \
243 template(java_lang_VirtualMachineError, "java/lang/VirtualMachineError") \
244 template(java_lang_StackOverflowError, "java/lang/StackOverflowError") \
245 template(java_lang_StackTraceElement, "java/lang/StackTraceElement") \
246 \
247 /* Concurrency support */ \
248 template(java_util_concurrent_locks_AbstractOwnableSynchronizer, "java/util/concurrent/locks/AbstractOwnableSynchronizer") \
249 template(java_util_concurrent_atomic_AtomicIntegerFieldUpdater_Impl, "java/util/concurrent/atomic/AtomicIntegerFieldUpdater$AtomicIntegerFieldUpdaterImpl") \
250 template(java_util_concurrent_atomic_AtomicLongFieldUpdater_CASUpdater, "java/util/concurrent/atomic/AtomicLongFieldUpdater$CASUpdater") \
251 template(java_util_concurrent_atomic_AtomicLongFieldUpdater_LockedUpdater, "java/util/concurrent/atomic/AtomicLongFieldUpdater$LockedUpdater") \
252 template(java_util_concurrent_atomic_AtomicReferenceFieldUpdater_Impl, "java/util/concurrent/atomic/AtomicReferenceFieldUpdater$AtomicReferenceFieldUpdaterImpl") \
253 template(jdk_internal_vm_annotation_Contended_signature, "Ljdk/internal/vm/annotation/Contended;") \
254 template(jdk_internal_vm_annotation_ReservedStackAccess_signature, "Ljdk/internal/vm/annotation/ReservedStackAccess;") \
255 template(jdk_internal_ValueBased_signature, "Ljdk/internal/ValueBased;") \
256 \
257 /* class symbols needed by intrinsics */ \
258 VM_INTRINSICS_DO(VM_INTRINSIC_IGNORE, template, VM_SYMBOL_IGNORE, VM_SYMBOL_IGNORE, VM_ALIAS_IGNORE) \
259 \
260 /* Support for reflection based on dynamic bytecode generation (JDK 1.4 and above) */ \
261 \
262 template(jdk_internal_reflect, "jdk/internal/reflect") \
263 template(reflect_MethodAccessorImpl, "jdk/internal/reflect/MethodAccessorImpl") \
264 template(reflect_DelegatingClassLoader, "jdk/internal/reflect/DelegatingClassLoader") \
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(reflect_SerializationConstructorAccessorImpl, "jdk/internal/reflect/SerializationConstructorAccessorImpl") \
270 template(clazz_name, "clazz") \
271 template(exceptionTypes_name, "exceptionTypes") \
272 template(modifiers_name, "modifiers") \
273 template(invokeBasic_name, "invokeBasic") \
274 template(linkToVirtual_name, "linkToVirtual") \
275 template(linkToStatic_name, "linkToStatic") \
276 template(linkToSpecial_name, "linkToSpecial") \
277 template(linkToInterface_name, "linkToInterface") \
278 template(linkToNative_name, "linkToNative") \
279 template(compiledLambdaForm_name, "<compiledLambdaForm>") /*fake name*/ \
280 template(star_name, "*") /*not really a name*/ \
281 template(invoke_name, "invoke") \
282 template(parameterTypes_name, "parameterTypes") \
283 template(returnType_name, "returnType") \
284 template(signature_name, "signature") \
285 template(slot_name, "slot") \
286 template(trusted_final_name, "trustedFinal") \
287 template(blackhole_name, "<blackhole>") /*fake name*/ \
288 \
289 /* Support for annotations (JDK 1.5 and above) */ \
290 \
291 template(annotations_name, "annotations") \
292 template(index_name, "index") \
293 template(executable_name, "executable") \
294 template(parameter_annotations_name, "parameterAnnotations") \
295 template(annotation_default_name, "annotationDefault") \
296 template(reflect_ConstantPool, "jdk/internal/reflect/ConstantPool") \
297 template(base_name, "base") \
298 /* Type Annotations (JDK 8 and above) */ \
299 template(type_annotations_name, "typeAnnotations") \
300 \
301 /* Intrinsic Annotation (JDK 9 and above) */ \
302 template(jdk_internal_vm_annotation_DontInline_signature, "Ljdk/internal/vm/annotation/DontInline;") \
303 template(jdk_internal_vm_annotation_ForceInline_signature, "Ljdk/internal/vm/annotation/ForceInline;") \
304 template(jdk_internal_vm_annotation_Hidden_signature, "Ljdk/internal/vm/annotation/Hidden;") \
305 template(jdk_internal_misc_Scoped_signature, "Ljdk/internal/misc/ScopedMemoryAccess$Scoped;") \
306 template(jdk_internal_vm_annotation_IntrinsicCandidate_signature, "Ljdk/internal/vm/annotation/IntrinsicCandidate;") \
488 template(input_stream_signature, "Ljava/io/InputStream;") \
489 template(print_stream_signature, "Ljava/io/PrintStream;") \
490 template(security_manager_signature, "Ljava/lang/SecurityManager;") \
491 template(defineOrCheckPackage_name, "defineOrCheckPackage") \
492 template(defineOrCheckPackage_signature, "(Ljava/lang/String;Ljava/util/jar/Manifest;Ljava/net/URL;)Ljava/lang/Package;") \
493 template(getProtectionDomain_name, "getProtectionDomain") \
494 template(getProtectionDomain_signature, "(Ljava/security/CodeSource;)Ljava/security/ProtectionDomain;") \
495 template(java_lang_Integer_array_signature, "[Ljava/lang/Integer;") \
496 template(java_lang_Long_array_signature, "[Ljava/lang/Long;") \
497 template(java_lang_Character_array_signature, "[Ljava/lang/Character;") \
498 template(java_lang_Short_array_signature, "[Ljava/lang/Short;") \
499 template(java_lang_Byte_array_signature, "[Ljava/lang/Byte;") \
500 template(java_lang_Boolean_signature, "Ljava/lang/Boolean;") \
501 template(url_code_signer_array_void_signature, "(Ljava/net/URL;[Ljava/security/CodeSigner;)V") \
502 template(jvmti_thread_state_name, "jvmti_thread_state") \
503 template(jvmti_VTMS_transition_disable_count_name, "jvmti_VTMS_transition_disable_count") \
504 template(jvmti_is_in_VTMS_transition_name, "jvmti_is_in_VTMS_transition") \
505 template(module_entry_name, "module_entry") \
506 template(resolved_references_name, "<resolved_references>") \
507 template(init_lock_name, "<init_lock>") \
508 template(address_size_name, "ADDRESS_SIZE0") \
509 template(page_size_name, "PAGE_SIZE") \
510 template(big_endian_name, "BIG_ENDIAN") \
511 template(use_unaligned_access_name, "UNALIGNED_ACCESS") \
512 template(data_cache_line_flush_size_name, "DATA_CACHE_LINE_FLUSH_SIZE") \
513 template(during_unsafe_access_name, "during_unsafe_access") \
514 template(checkIndex_name, "checkIndex") \
515 template(jfr_epoch_name, "jfr_epoch") \
516 template(maxThawingSize_name, "maxThawingSize") \
517 \
518 /* name symbols needed by intrinsics */ \
519 VM_INTRINSICS_DO(VM_INTRINSIC_IGNORE, VM_SYMBOL_IGNORE, template, VM_SYMBOL_IGNORE, VM_ALIAS_IGNORE) \
520 \
521 /* common signatures names */ \
522 template(void_method_signature, "()V") \
523 template(void_boolean_signature, "()Z") \
524 template(void_byte_signature, "()B") \
525 template(void_char_signature, "()C") \
526 template(void_short_signature, "()S") \
527 template(void_int_signature, "()I") \
558 template(byte_array_signature, "[B") \
559 template(char_array_signature, "[C") \
560 template(runnable_signature, "Ljava/lang/Runnable;") \
561 template(continuation_signature, "Ljdk/internal/vm/Continuation;") \
562 template(continuationscope_signature, "Ljdk/internal/vm/ContinuationScope;") \
563 template(stackchunk_signature, "Ljdk/internal/vm/StackChunk;") \
564 template(object_void_signature, "(Ljava/lang/Object;)V") \
565 template(object_int_signature, "(Ljava/lang/Object;)I") \
566 template(long_object_long_signature, "(JLjava/lang/Object;)J") \
567 template(object_boolean_signature, "(Ljava/lang/Object;)Z") \
568 template(object_object_signature, "(Ljava/lang/Object;)Ljava/lang/Object;") \
569 template(string_void_signature, "(Ljava/lang/String;)V") \
570 template(string_bool_byte_array_signature, "(Ljava/lang/String;Z)[B") \
571 template(throwable_signature, "Ljava/lang/Throwable;") \
572 template(throwable_void_signature, "(Ljava/lang/Throwable;)V") \
573 template(void_throwable_signature, "()Ljava/lang/Throwable;") \
574 template(class_void_signature, "(Ljava/lang/Class;)V") \
575 template(class_int_signature, "(Ljava/lang/Class;)I") \
576 template(class_long_signature, "(Ljava/lang/Class;)J") \
577 template(class_boolean_signature, "(Ljava/lang/Class;)Z") \
578 template(throwable_throwable_signature, "(Ljava/lang/Throwable;)Ljava/lang/Throwable;") \
579 template(thread_void_signature, "(Ljava/lang/Thread;)V") \
580 template(runnable_void_signature, "(Ljava/lang/Runnable;)V") \
581 template(threadgroup_runnable_void_signature, "(Ljava/lang/ThreadGroup;Ljava/lang/Runnable;)V") \
582 template(threadgroup_string_void_signature, "(Ljava/lang/ThreadGroup;Ljava/lang/String;)V") \
583 template(void_threadgroup_array_signature, "()[Ljava/lang/ThreadGroup;") \
584 template(string_class_signature, "(Ljava/lang/String;)Ljava/lang/Class;") \
585 template(string_boolean_class_signature, "(Ljava/lang/String;Z)Ljava/lang/Class;") \
586 template(object_object_object_signature, "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;") \
587 template(string_string_signature, "(Ljava/lang/String;)Ljava/lang/String;") \
588 template(classloader_string_long_signature, "(Ljava/lang/ClassLoader;Ljava/lang/String;)J") \
589 template(byte_array_void_signature, "([B)V") \
590 template(long_long_void_signature, "(JJ)V") \
591 template(void_byte_array_signature, "()[B") \
592 template(void_classloader_signature, "()Ljava/lang/ClassLoader;") \
593 template(void_BuiltinClassLoader_signature, "()Ljdk/internal/loader/BuiltinClassLoader;") \
594 template(void_object_signature, "()Ljava/lang/Object;") \
595 template(void_class_signature, "()Ljava/lang/Class;") \
596 template(void_class_array_signature, "()[Ljava/lang/Class;") \
597 template(void_string_signature, "()Ljava/lang/String;") \
598 template(object_array_object_signature, "([Ljava/lang/Object;)Ljava/lang/Object;") \
599 template(object_object_array_object_signature, "(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;")\
600 template(protectiondomain_signature, "[Ljava/security/ProtectionDomain;") \
601 template(accesscontrolcontext_signature, "Ljava/security/AccessControlContext;") \
602 template(class_protectiondomain_signature, "(Ljava/lang/Class;Ljava/security/ProtectionDomain;)V") \
603 template(thread_signature, "Ljava/lang/Thread;") \
604 template(thread_fieldholder_signature, "Ljava/lang/Thread$FieldHolder;") \
605 template(threadgroup_signature, "Ljava/lang/ThreadGroup;") \
606 template(threadgroup_array_signature, "[Ljava/lang/ThreadGroup;") \
697 template(addUses_signature, "(Ljava/lang/Module;Ljava/lang/Class;)V") \
698 template(addProvides_name, "addProvides") \
699 template(addProvides_signature, "(Ljava/lang/Module;Ljava/lang/Class;Ljava/lang/Class;)V") \
700 template(loadModule_name, "loadModule") \
701 template(loadModule_signature, "(Ljava/lang/String;)Ljava/lang/Module;") \
702 template(transformedByAgent_name, "transformedByAgent") \
703 template(transformedByAgent_signature, "(Ljava/lang/Module;)V") \
704 template(appendToClassPathForInstrumentation_name, "appendToClassPathForInstrumentation") \
705 do_alias(appendToClassPathForInstrumentation_signature, string_void_signature) \
706 template(serializePropertiesToByteArray_name, "serializePropertiesToByteArray") \
707 template(serializeAgentPropertiesToByteArray_name, "serializeAgentPropertiesToByteArray") \
708 template(encodeThrowable_name, "encodeThrowable") \
709 template(encodeThrowable_signature, "(Ljava/lang/Throwable;JI)I") \
710 template(decodeAndThrowThrowable_name, "decodeAndThrowThrowable") \
711 template(encodeAnnotations_name, "encodeAnnotations") \
712 template(encodeAnnotations_signature, "([BLjava/lang/Class;Ljdk/internal/reflect/ConstantPool;Z[Ljava/lang/Class;)[B")\
713 template(decodeAndThrowThrowable_signature, "(IJZZ)V") \
714 template(classRedefinedCount_name, "classRedefinedCount") \
715 template(classLoader_name, "classLoader") \
716 template(componentType_name, "componentType") \
717 \
718 /* forEachRemaining support */ \
719 template(java_util_stream_StreamsRangeIntSpliterator, "java/util/stream/Streams$RangeIntSpliterator") \
720 \
721 /* jfr signatures */ \
722 JFR_TEMPLATES(template) \
723 \
724 /* CDS */ \
725 template(dumpSharedArchive, "dumpSharedArchive") \
726 template(dumpSharedArchive_signature, "(ZLjava/lang/String;)Ljava/lang/String;") \
727 template(generateLambdaFormHolderClasses, "generateLambdaFormHolderClasses") \
728 template(generateLambdaFormHolderClasses_signature, "([Ljava/lang/String;)[Ljava/lang/Object;") \
729 template(java_lang_Enum, "java/lang/Enum") \
730 template(java_lang_invoke_Invokers_Holder, "java/lang/invoke/Invokers$Holder") \
731 template(java_lang_invoke_DirectMethodHandle_Holder, "java/lang/invoke/DirectMethodHandle$Holder") \
732 template(java_lang_invoke_LambdaForm_Holder, "java/lang/invoke/LambdaForm$Holder") \
733 template(java_lang_invoke_DelegatingMethodHandle_Holder, "java/lang/invoke/DelegatingMethodHandle$Holder") \
734 template(jdk_internal_loader_ClassLoaders, "jdk/internal/loader/ClassLoaders") \
735 template(jdk_internal_misc_CDS, "jdk/internal/misc/CDS") \
736 template(java_util_concurrent_ConcurrentHashMap, "java/util/concurrent/ConcurrentHashMap") \
737 template(java_util_ArrayList, "java/util/ArrayList") \
738 template(toFileURL_name, "toFileURL") \
739 template(toFileURL_signature, "(Ljava/lang/String;)Ljava/net/URL;") \
740 template(url_array_classloader_void_signature, "([Ljava/net/URL;Ljava/lang/ClassLoader;)V") \
741 \
742 /* Thread.dump_to_file jcmd */ \
743 template(jdk_internal_vm_ThreadDumper, "jdk/internal/vm/ThreadDumper") \
744 template(dumpThreads_name, "dumpThreads") \
745 template(dumpThreadsToJson_name, "dumpThreadsToJson") \
746
747 /*end*/
748
749 // enum for figuring positions and size of Symbol::_vm_symbols[]
750 enum class vmSymbolID : int {
751 // [FIRST_SID ... LAST_SID] is the iteration range for the *valid* symbols.
752 // NO_SID is used to indicate an invalid symbol. Some implementation code
753 // *may* read _vm_symbols[NO_SID], so it must be a valid array index.
754 NO_SID = 0, // exclusive lower limit
755
756 #define VM_SYMBOL_ENUM(name, string) VM_SYMBOL_ENUM_NAME_(name),
757 VM_SYMBOLS_DO(VM_SYMBOL_ENUM, VM_ALIAS_IGNORE)
758 #undef VM_SYMBOL_ENUM
759
760 SID_LIMIT, // exclusive upper limit
761
|
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_IllegalStateException, "java/lang/IllegalStateException") \
208 template(java_lang_IllegalMonitorStateException, "java/lang/IllegalMonitorStateException") \
209 template(java_lang_IdentityException, "java/lang/IdentityException") \
210 template(java_lang_IllegalThreadStateException, "java/lang/IllegalThreadStateException") \
211 template(java_lang_IndexOutOfBoundsException, "java/lang/IndexOutOfBoundsException") \
212 template(java_lang_InstantiationException, "java/lang/InstantiationException") \
213 template(java_lang_InstantiationError, "java/lang/InstantiationError") \
214 template(java_lang_InterruptedException, "java/lang/InterruptedException") \
215 template(java_lang_BootstrapMethodError, "java/lang/BootstrapMethodError") \
216 template(java_lang_LinkageError, "java/lang/LinkageError") \
217 template(java_lang_NegativeArraySizeException, "java/lang/NegativeArraySizeException") \
218 template(java_lang_NoSuchMethodException, "java/lang/NoSuchMethodException") \
219 template(java_lang_NullPointerException, "java/lang/NullPointerException") \
220 template(java_lang_StringIndexOutOfBoundsException, "java/lang/StringIndexOutOfBoundsException")\
221 template(java_lang_UnsupportedOperationException, "java/lang/UnsupportedOperationException") \
222 template(java_lang_InvalidClassException, "java/lang/InvalidClassException") \
223 template(java_lang_reflect_InvocationTargetException, "java/lang/reflect/InvocationTargetException") \
224 template(java_lang_Exception, "java/lang/Exception") \
225 template(java_lang_RuntimeException, "java/lang/RuntimeException") \
226 template(java_io_IOException, "java/io/IOException") \
227 \
228 /* error klasses: at least all errors thrown by the VM have entries here */ \
229 template(java_lang_AbstractMethodError, "java/lang/AbstractMethodError") \
237 template(java_lang_InternalError, "java/lang/InternalError") \
238 template(java_lang_NoClassDefFoundError, "java/lang/NoClassDefFoundError") \
239 template(java_lang_NoSuchFieldError, "java/lang/NoSuchFieldError") \
240 template(java_lang_NoSuchMethodError, "java/lang/NoSuchMethodError") \
241 template(java_lang_OutOfMemoryError, "java/lang/OutOfMemoryError") \
242 template(java_lang_UnsatisfiedLinkError, "java/lang/UnsatisfiedLinkError") \
243 template(java_lang_VerifyError, "java/lang/VerifyError") \
244 template(java_lang_SecurityException, "java/lang/SecurityException") \
245 template(java_lang_VirtualMachineError, "java/lang/VirtualMachineError") \
246 template(java_lang_StackOverflowError, "java/lang/StackOverflowError") \
247 template(java_lang_StackTraceElement, "java/lang/StackTraceElement") \
248 \
249 /* Concurrency support */ \
250 template(java_util_concurrent_locks_AbstractOwnableSynchronizer, "java/util/concurrent/locks/AbstractOwnableSynchronizer") \
251 template(java_util_concurrent_atomic_AtomicIntegerFieldUpdater_Impl, "java/util/concurrent/atomic/AtomicIntegerFieldUpdater$AtomicIntegerFieldUpdaterImpl") \
252 template(java_util_concurrent_atomic_AtomicLongFieldUpdater_CASUpdater, "java/util/concurrent/atomic/AtomicLongFieldUpdater$CASUpdater") \
253 template(java_util_concurrent_atomic_AtomicLongFieldUpdater_LockedUpdater, "java/util/concurrent/atomic/AtomicLongFieldUpdater$LockedUpdater") \
254 template(java_util_concurrent_atomic_AtomicReferenceFieldUpdater_Impl, "java/util/concurrent/atomic/AtomicReferenceFieldUpdater$AtomicReferenceFieldUpdaterImpl") \
255 template(jdk_internal_vm_annotation_Contended_signature, "Ljdk/internal/vm/annotation/Contended;") \
256 template(jdk_internal_vm_annotation_ReservedStackAccess_signature, "Ljdk/internal/vm/annotation/ReservedStackAccess;") \
257 template(jdk_internal_vm_annotation_ImplicitlyConstructible_signature, "Ljdk/internal/vm/annotation/ImplicitlyConstructible;") \
258 template(jdk_internal_vm_annotation_LooselyConsistentValue_signature, "Ljdk/internal/vm/annotation/LooselyConsistentValue;") \
259 template(jdk_internal_vm_annotation_NullRestricted_signature, "Ljdk/internal/vm/annotation/NullRestricted;") \
260 template(jdk_internal_ValueBased_signature, "Ljdk/internal/ValueBased;") \
261 \
262 /* class symbols needed by intrinsics */ \
263 VM_INTRINSICS_DO(VM_INTRINSIC_IGNORE, template, VM_SYMBOL_IGNORE, VM_SYMBOL_IGNORE, VM_ALIAS_IGNORE) \
264 \
265 /* Support for reflection based on dynamic bytecode generation (JDK 1.4 and above) */ \
266 \
267 template(jdk_internal_reflect, "jdk/internal/reflect") \
268 template(reflect_MethodAccessorImpl, "jdk/internal/reflect/MethodAccessorImpl") \
269 template(reflect_DelegatingClassLoader, "jdk/internal/reflect/DelegatingClassLoader") \
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(reflect_SerializationConstructorAccessorImpl, "jdk/internal/reflect/SerializationConstructorAccessorImpl") \
275 template(clazz_name, "clazz") \
276 template(exceptionTypes_name, "exceptionTypes") \
277 template(modifiers_name, "modifiers") \
278 template(invokeBasic_name, "invokeBasic") \
279 template(linkToVirtual_name, "linkToVirtual") \
280 template(linkToStatic_name, "linkToStatic") \
281 template(linkToSpecial_name, "linkToSpecial") \
282 template(linkToInterface_name, "linkToInterface") \
283 template(linkToNative_name, "linkToNative") \
284 template(compiledLambdaForm_name, "<compiledLambdaForm>") /*fake name*/ \
285 template(star_name, "*") /*not really a name*/ \
286 template(invoke_name, "invoke") \
287 template(parameterTypes_name, "parameterTypes") \
288 template(returnType_name, "returnType") \
289 template(signature_name, "signature") \
290 template(slot_name, "slot") \
291 template(blackhole_name, "<blackhole>") /*fake name*/ \
292 \
293 /* Support for annotations (JDK 1.5 and above) */ \
294 \
295 template(annotations_name, "annotations") \
296 template(index_name, "index") \
297 template(executable_name, "executable") \
298 template(parameter_annotations_name, "parameterAnnotations") \
299 template(annotation_default_name, "annotationDefault") \
300 template(reflect_ConstantPool, "jdk/internal/reflect/ConstantPool") \
301 template(base_name, "base") \
302 /* Type Annotations (JDK 8 and above) */ \
303 template(type_annotations_name, "typeAnnotations") \
304 \
305 /* Intrinsic Annotation (JDK 9 and above) */ \
306 template(jdk_internal_vm_annotation_DontInline_signature, "Ljdk/internal/vm/annotation/DontInline;") \
307 template(jdk_internal_vm_annotation_ForceInline_signature, "Ljdk/internal/vm/annotation/ForceInline;") \
308 template(jdk_internal_vm_annotation_Hidden_signature, "Ljdk/internal/vm/annotation/Hidden;") \
309 template(jdk_internal_misc_Scoped_signature, "Ljdk/internal/misc/ScopedMemoryAccess$Scoped;") \
310 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(default_value_name, ".default") \
513 template(empty_marker_name, ".empty") \
514 template(address_size_name, "ADDRESS_SIZE0") \
515 template(page_size_name, "PAGE_SIZE") \
516 template(big_endian_name, "BIG_ENDIAN") \
517 template(use_unaligned_access_name, "UNALIGNED_ACCESS") \
518 template(data_cache_line_flush_size_name, "DATA_CACHE_LINE_FLUSH_SIZE") \
519 template(during_unsafe_access_name, "during_unsafe_access") \
520 template(checkIndex_name, "checkIndex") \
521 template(jfr_epoch_name, "jfr_epoch") \
522 template(maxThawingSize_name, "maxThawingSize") \
523 \
524 /* name symbols needed by intrinsics */ \
525 VM_INTRINSICS_DO(VM_INTRINSIC_IGNORE, VM_SYMBOL_IGNORE, template, VM_SYMBOL_IGNORE, VM_ALIAS_IGNORE) \
526 \
527 /* common signatures names */ \
528 template(void_method_signature, "()V") \
529 template(void_boolean_signature, "()Z") \
530 template(void_byte_signature, "()B") \
531 template(void_char_signature, "()C") \
532 template(void_short_signature, "()S") \
533 template(void_int_signature, "()I") \
564 template(byte_array_signature, "[B") \
565 template(char_array_signature, "[C") \
566 template(runnable_signature, "Ljava/lang/Runnable;") \
567 template(continuation_signature, "Ljdk/internal/vm/Continuation;") \
568 template(continuationscope_signature, "Ljdk/internal/vm/ContinuationScope;") \
569 template(stackchunk_signature, "Ljdk/internal/vm/StackChunk;") \
570 template(object_void_signature, "(Ljava/lang/Object;)V") \
571 template(object_int_signature, "(Ljava/lang/Object;)I") \
572 template(long_object_long_signature, "(JLjava/lang/Object;)J") \
573 template(object_boolean_signature, "(Ljava/lang/Object;)Z") \
574 template(object_object_signature, "(Ljava/lang/Object;)Ljava/lang/Object;") \
575 template(string_void_signature, "(Ljava/lang/String;)V") \
576 template(string_bool_byte_array_signature, "(Ljava/lang/String;Z)[B") \
577 template(throwable_signature, "Ljava/lang/Throwable;") \
578 template(throwable_void_signature, "(Ljava/lang/Throwable;)V") \
579 template(void_throwable_signature, "()Ljava/lang/Throwable;") \
580 template(class_void_signature, "(Ljava/lang/Class;)V") \
581 template(class_int_signature, "(Ljava/lang/Class;)I") \
582 template(class_long_signature, "(Ljava/lang/Class;)J") \
583 template(class_boolean_signature, "(Ljava/lang/Class;)Z") \
584 template(class_class_signature, "(Ljava/lang/Class;)Ljava/lang/Class;") \
585 template(throwable_throwable_signature, "(Ljava/lang/Throwable;)Ljava/lang/Throwable;") \
586 template(thread_void_signature, "(Ljava/lang/Thread;)V") \
587 template(runnable_void_signature, "(Ljava/lang/Runnable;)V") \
588 template(threadgroup_runnable_void_signature, "(Ljava/lang/ThreadGroup;Ljava/lang/Runnable;)V") \
589 template(threadgroup_string_void_signature, "(Ljava/lang/ThreadGroup;Ljava/lang/String;)V") \
590 template(void_threadgroup_array_signature, "()[Ljava/lang/ThreadGroup;") \
591 template(string_class_signature, "(Ljava/lang/String;)Ljava/lang/Class;") \
592 template(string_boolean_class_signature, "(Ljava/lang/String;Z)Ljava/lang/Class;") \
593 template(object_object_object_signature, "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;") \
594 template(object_object_boolean_signature, "(Ljava/lang/Object;Ljava/lang/Object;)Z") \
595 template(string_string_signature, "(Ljava/lang/String;)Ljava/lang/String;") \
596 template(classloader_string_long_signature, "(Ljava/lang/ClassLoader;Ljava/lang/String;)J") \
597 template(byte_array_void_signature, "([B)V") \
598 template(long_long_void_signature, "(JJ)V") \
599 template(void_byte_array_signature, "()[B") \
600 template(void_classloader_signature, "()Ljava/lang/ClassLoader;") \
601 template(void_BuiltinClassLoader_signature, "()Ljdk/internal/loader/BuiltinClassLoader;") \
602 template(void_object_signature, "()Ljava/lang/Object;") \
603 template(void_class_signature, "()Ljava/lang/Class;") \
604 template(void_class_array_signature, "()[Ljava/lang/Class;") \
605 template(void_string_signature, "()Ljava/lang/String;") \
606 template(object_array_object_signature, "([Ljava/lang/Object;)Ljava/lang/Object;") \
607 template(object_object_array_object_signature, "(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;")\
608 template(protectiondomain_signature, "[Ljava/security/ProtectionDomain;") \
609 template(accesscontrolcontext_signature, "Ljava/security/AccessControlContext;") \
610 template(class_protectiondomain_signature, "(Ljava/lang/Class;Ljava/security/ProtectionDomain;)V") \
611 template(thread_signature, "Ljava/lang/Thread;") \
612 template(thread_fieldholder_signature, "Ljava/lang/Thread$FieldHolder;") \
613 template(threadgroup_signature, "Ljava/lang/ThreadGroup;") \
614 template(threadgroup_array_signature, "[Ljava/lang/ThreadGroup;") \
705 template(addUses_signature, "(Ljava/lang/Module;Ljava/lang/Class;)V") \
706 template(addProvides_name, "addProvides") \
707 template(addProvides_signature, "(Ljava/lang/Module;Ljava/lang/Class;Ljava/lang/Class;)V") \
708 template(loadModule_name, "loadModule") \
709 template(loadModule_signature, "(Ljava/lang/String;)Ljava/lang/Module;") \
710 template(transformedByAgent_name, "transformedByAgent") \
711 template(transformedByAgent_signature, "(Ljava/lang/Module;)V") \
712 template(appendToClassPathForInstrumentation_name, "appendToClassPathForInstrumentation") \
713 do_alias(appendToClassPathForInstrumentation_signature, string_void_signature) \
714 template(serializePropertiesToByteArray_name, "serializePropertiesToByteArray") \
715 template(serializeAgentPropertiesToByteArray_name, "serializeAgentPropertiesToByteArray") \
716 template(encodeThrowable_name, "encodeThrowable") \
717 template(encodeThrowable_signature, "(Ljava/lang/Throwable;JI)I") \
718 template(decodeAndThrowThrowable_name, "decodeAndThrowThrowable") \
719 template(encodeAnnotations_name, "encodeAnnotations") \
720 template(encodeAnnotations_signature, "([BLjava/lang/Class;Ljdk/internal/reflect/ConstantPool;Z[Ljava/lang/Class;)[B")\
721 template(decodeAndThrowThrowable_signature, "(IJZZ)V") \
722 template(classRedefinedCount_name, "classRedefinedCount") \
723 template(classLoader_name, "classLoader") \
724 template(componentType_name, "componentType") \
725 template(primaryType_name, "primaryType") \
726 template(secondaryType_name, "secondaryType") \
727 \
728 /* forEachRemaining support */ \
729 template(java_util_stream_StreamsRangeIntSpliterator, "java/util/stream/Streams$RangeIntSpliterator") \
730 \
731 /* jfr signatures */ \
732 JFR_TEMPLATES(template) \
733 \
734 /* CDS */ \
735 template(dumpSharedArchive, "dumpSharedArchive") \
736 template(dumpSharedArchive_signature, "(ZLjava/lang/String;)Ljava/lang/String;") \
737 template(generateLambdaFormHolderClasses, "generateLambdaFormHolderClasses") \
738 template(generateLambdaFormHolderClasses_signature, "([Ljava/lang/String;)[Ljava/lang/Object;") \
739 template(java_lang_Enum, "java/lang/Enum") \
740 template(java_lang_invoke_Invokers_Holder, "java/lang/invoke/Invokers$Holder") \
741 template(java_lang_invoke_DirectMethodHandle_Holder, "java/lang/invoke/DirectMethodHandle$Holder") \
742 template(java_lang_invoke_LambdaForm_Holder, "java/lang/invoke/LambdaForm$Holder") \
743 template(java_lang_invoke_DelegatingMethodHandle_Holder, "java/lang/invoke/DelegatingMethodHandle$Holder") \
744 template(jdk_internal_loader_ClassLoaders, "jdk/internal/loader/ClassLoaders") \
745 template(jdk_internal_misc_CDS, "jdk/internal/misc/CDS") \
746 template(java_util_concurrent_ConcurrentHashMap, "java/util/concurrent/ConcurrentHashMap") \
747 template(java_util_ArrayList, "java/util/ArrayList") \
748 template(toFileURL_name, "toFileURL") \
749 template(toFileURL_signature, "(Ljava/lang/String;)Ljava/net/URL;") \
750 template(url_array_classloader_void_signature, "([Ljava/net/URL;Ljava/lang/ClassLoader;)V") \
751 \
752 template(java_lang_runtime_ValueObjectMethods, "java/lang/runtime/ValueObjectMethods") \
753 template(isSubstitutable_name, "isSubstitutable") \
754 template(valueObjectHashCode_name, "valueObjectHashCode") \
755 template(jdk_internal_value_PrimitiveClass, "jdk/internal/value/PrimitiveClass") \
756 template(jdk_internal_value_ValueClass, "jdk/internal/value/ValueClass") \
757 \
758 /* Thread.dump_to_file jcmd */ \
759 template(jdk_internal_vm_ThreadDumper, "jdk/internal/vm/ThreadDumper") \
760 template(dumpThreads_name, "dumpThreads") \
761 template(dumpThreadsToJson_name, "dumpThreadsToJson") \
762
763 /*end*/
764
765 // enum for figuring positions and size of Symbol::_vm_symbols[]
766 enum class vmSymbolID : int {
767 // [FIRST_SID ... LAST_SID] is the iteration range for the *valid* symbols.
768 // NO_SID is used to indicate an invalid symbol. Some implementation code
769 // *may* read _vm_symbols[NO_SID], so it must be a valid array index.
770 NO_SID = 0, // exclusive lower limit
771
772 #define VM_SYMBOL_ENUM(name, string) VM_SYMBOL_ENUM_NAME_(name),
773 VM_SYMBOLS_DO(VM_SYMBOL_ENUM, VM_ALIAS_IGNORE)
774 #undef VM_SYMBOL_ENUM
775
776 SID_LIMIT, // exclusive upper limit
777
|