164 \
165 /* Java runtime version access */ \
166 template(java_lang_VersionProps, "java/lang/VersionProps") \
167 template(java_version_name, "java_version") \
168 template(java_runtime_name_name, "java_runtime_name") \
169 template(java_runtime_version_name, "java_runtime_version") \
170 template(java_runtime_vendor_version_name, "VENDOR_VERSION") \
171 template(java_runtime_vendor_vm_bug_url_name, "VENDOR_URL_VM_BUG") \
172 \
173 /* system initialization */ \
174 template(initPhase1_name, "initPhase1") \
175 template(initPhase2_name, "initPhase2") \
176 template(initPhase3_name, "initPhase3") \
177 template(java_lang_module_init_signature, "(Ljava/lang/ClassLoader;Ljava/lang/String;)V") \
178 \
179 /* class file format tags */ \
180 template(tag_source_file, "SourceFile") \
181 template(tag_inner_classes, "InnerClasses") \
182 template(tag_nest_members, "NestMembers") \
183 template(tag_nest_host, "NestHost") \
184 template(tag_constant_value, "ConstantValue") \
185 template(tag_code, "Code") \
186 template(tag_exceptions, "Exceptions") \
187 template(tag_line_number_table, "LineNumberTable") \
188 template(tag_local_variable_table, "LocalVariableTable") \
189 template(tag_local_variable_type_table, "LocalVariableTypeTable") \
190 template(tag_method_parameters, "MethodParameters") \
191 template(tag_stack_map_table, "StackMapTable") \
192 template(tag_synthetic, "Synthetic") \
193 template(tag_deprecated, "Deprecated") \
194 template(tag_source_debug_extension, "SourceDebugExtension") \
195 template(tag_signature, "Signature") \
196 template(tag_record, "Record") \
197 template(tag_runtime_visible_annotations, "RuntimeVisibleAnnotations") \
198 template(tag_runtime_invisible_annotations, "RuntimeInvisibleAnnotations") \
199 template(tag_runtime_visible_parameter_annotations, "RuntimeVisibleParameterAnnotations") \
200 template(tag_runtime_invisible_parameter_annotations,"RuntimeInvisibleParameterAnnotations") \
201 template(tag_annotation_default, "AnnotationDefault") \
202 template(tag_runtime_visible_type_annotations, "RuntimeVisibleTypeAnnotations") \
203 template(tag_runtime_invisible_type_annotations, "RuntimeInvisibleTypeAnnotations") \
373 template(jdk_internal_foreign_abi_VMStorage_signature, "Ljdk/internal/foreign/abi/VMStorage;") \
374 template(jdk_internal_foreign_abi_VMStorage_array_signature, "[Ljdk/internal/foreign/abi/VMStorage;") \
375 template(jdk_internal_foreign_abi_VMStorage_array_array_signature, "[[Ljdk/internal/foreign/abi/VMStorage;") \
376 template(jdk_internal_foreign_abi_CallConv, "jdk/internal/foreign/abi/UpcallLinker$CallRegs") \
377 \
378 /* Support for JVMCI */ \
379 JVMCI_VM_SYMBOLS_DO(template, do_alias) \
380 \
381 template(java_lang_StackWalker, "java/lang/StackWalker") \
382 template(java_lang_StackFrameInfo, "java/lang/StackFrameInfo") \
383 template(java_lang_LiveStackFrameInfo, "java/lang/LiveStackFrameInfo") \
384 template(java_lang_StackStreamFactory_AbstractStackWalker, "java/lang/StackStreamFactory$AbstractStackWalker") \
385 template(doStackWalk_signature, "(JIIII)Ljava/lang/Object;") \
386 template(asPrimitive_name, "asPrimitive") \
387 template(asPrimitive_int_signature, "(I)Ljava/lang/LiveStackFrame$PrimitiveSlot;") \
388 template(asPrimitive_long_signature, "(J)Ljava/lang/LiveStackFrame$PrimitiveSlot;") \
389 \
390 /* common method and field names */ \
391 template(object_initializer_name, "<init>") \
392 template(class_initializer_name, "<clinit>") \
393 template(println_name, "println") \
394 template(printStackTrace_name, "printStackTrace") \
395 template(getStackTrace_name, "getStackTrace") \
396 template(main_name, "main") \
397 template(name_name, "name") \
398 template(priority_name, "priority") \
399 template(group_name, "group") \
400 template(daemon_name, "daemon") \
401 template(run_method_name, "run") \
402 template(runWith_method_name, "runWith") \
403 template(interrupt_method_name, "interrupt") \
404 template(exit_method_name, "exit") \
405 template(remove_method_name, "remove") \
406 template(parent_name, "parent") \
407 template(maxPriority_name, "maxPriority") \
408 template(shutdown_name, "shutdown") \
409 template(finalize_method_name, "finalize") \
410 template(reference_lock_name, "lock") \
411 template(reference_discovered_name, "discovered") \
412 template(run_finalization_name, "runFinalization") \
514 template(input_stream_signature, "Ljava/io/InputStream;") \
515 template(print_stream_signature, "Ljava/io/PrintStream;") \
516 template(security_manager_signature, "Ljava/lang/SecurityManager;") \
517 template(defineOrCheckPackage_name, "defineOrCheckPackage") \
518 template(defineOrCheckPackage_signature, "(Ljava/lang/String;Ljava/util/jar/Manifest;Ljava/net/URL;)Ljava/lang/Package;") \
519 template(getProtectionDomain_name, "getProtectionDomain") \
520 template(getProtectionDomain_signature, "(Ljava/security/CodeSource;)Ljava/security/ProtectionDomain;") \
521 template(java_lang_Integer_array_signature, "[Ljava/lang/Integer;") \
522 template(java_lang_Long_array_signature, "[Ljava/lang/Long;") \
523 template(java_lang_Character_array_signature, "[Ljava/lang/Character;") \
524 template(java_lang_Short_array_signature, "[Ljava/lang/Short;") \
525 template(java_lang_Byte_array_signature, "[Ljava/lang/Byte;") \
526 template(java_lang_Boolean_signature, "Ljava/lang/Boolean;") \
527 template(url_code_signer_array_void_signature, "(Ljava/net/URL;[Ljava/security/CodeSigner;)V") \
528 template(jvmti_thread_state_name, "jvmti_thread_state") \
529 template(jvmti_VTMS_transition_disable_count_name, "jvmti_VTMS_transition_disable_count") \
530 template(jvmti_is_in_VTMS_transition_name, "jvmti_is_in_VTMS_transition") \
531 template(module_entry_name, "module_entry") \
532 template(resolved_references_name, "<resolved_references>") \
533 template(init_lock_name, "<init_lock>") \
534 template(address_size_name, "ADDRESS_SIZE0") \
535 template(page_size_name, "PAGE_SIZE") \
536 template(big_endian_name, "BIG_ENDIAN") \
537 template(use_unaligned_access_name, "UNALIGNED_ACCESS") \
538 template(data_cache_line_flush_size_name, "DATA_CACHE_LINE_FLUSH_SIZE") \
539 template(during_unsafe_access_name, "during_unsafe_access") \
540 template(checkIndex_name, "checkIndex") \
541 template(jfr_epoch_name, "jfr_epoch") \
542 template(maxThawingSize_name, "maxThawingSize") \
543 \
544 /* name symbols needed by intrinsics */ \
545 VM_INTRINSICS_DO(VM_INTRINSIC_IGNORE, VM_SYMBOL_IGNORE, template, VM_SYMBOL_IGNORE, VM_ALIAS_IGNORE) \
546 \
547 /* common signatures names */ \
548 template(void_method_signature, "()V") \
549 template(void_boolean_signature, "()Z") \
550 template(void_byte_signature, "()B") \
551 template(void_char_signature, "()C") \
552 template(void_short_signature, "()S") \
553 template(void_int_signature, "()I") \
590 template(continuation_signature, "Ljdk/internal/vm/Continuation;") \
591 template(continuationscope_signature, "Ljdk/internal/vm/ContinuationScope;") \
592 template(stackchunk_signature, "Ljdk/internal/vm/StackChunk;") \
593 template(vthread_signature, "Ljava/lang/VirtualThread;") \
594 template(object_void_signature, "(Ljava/lang/Object;)V") \
595 template(object_int_signature, "(Ljava/lang/Object;)I") \
596 template(long_object_long_signature, "(JLjava/lang/Object;)J") \
597 template(object_boolean_signature, "(Ljava/lang/Object;)Z") \
598 template(object_object_signature, "(Ljava/lang/Object;)Ljava/lang/Object;") \
599 template(string_void_signature, "(Ljava/lang/String;)V") \
600 template(string_int_signature, "(Ljava/lang/String;)I") \
601 template(string_byte_array_signature, "(Ljava/lang/String;)[B") \
602 template(string_bool_byte_array_signature, "(Ljava/lang/String;Z)[B") \
603 template(throwable_signature, "Ljava/lang/Throwable;") \
604 template(throwable_void_signature, "(Ljava/lang/Throwable;)V") \
605 template(void_throwable_signature, "()Ljava/lang/Throwable;") \
606 template(class_void_signature, "(Ljava/lang/Class;)V") \
607 template(class_int_signature, "(Ljava/lang/Class;)I") \
608 template(class_long_signature, "(Ljava/lang/Class;)J") \
609 template(class_boolean_signature, "(Ljava/lang/Class;)Z") \
610 template(throwable_throwable_signature, "(Ljava/lang/Throwable;)Ljava/lang/Throwable;") \
611 template(throwable_string_void_signature, "(Ljava/lang/Throwable;Ljava/lang/String;)V") \
612 template(string_array_void_signature, "([Ljava/lang/String;)V") \
613 template(string_array_string_array_void_signature, "([Ljava/lang/String;[Ljava/lang/String;)V") \
614 template(thread_throwable_void_signature, "(Ljava/lang/Thread;Ljava/lang/Throwable;)V") \
615 template(thread_void_signature, "(Ljava/lang/Thread;)V") \
616 template(runnable_void_signature, "(Ljava/lang/Runnable;)V") \
617 template(threadgroup_runnable_void_signature, "(Ljava/lang/ThreadGroup;Ljava/lang/Runnable;)V") \
618 template(threadgroup_string_void_signature, "(Ljava/lang/ThreadGroup;Ljava/lang/String;)V") \
619 template(void_threadgroup_array_signature, "()[Ljava/lang/ThreadGroup;") \
620 template(string_class_signature, "(Ljava/lang/String;)Ljava/lang/Class;") \
621 template(string_boolean_class_signature, "(Ljava/lang/String;Z)Ljava/lang/Class;") \
622 template(object_object_object_signature, "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;") \
623 template(string_string_string_signature, "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;") \
624 template(string_string_signature, "(Ljava/lang/String;)Ljava/lang/String;") \
625 template(classloader_string_long_signature, "(Ljava/lang/ClassLoader;Ljava/lang/String;)J") \
626 template(byte_array_void_signature, "([B)V") \
627 template(char_array_void_signature, "([C)V") \
628 template(int_int_void_signature, "(II)V") \
629 template(long_long_void_signature, "(JJ)V") \
630 template(void_byte_array_signature, "()[B") \
631 template(void_classloader_signature, "()Ljava/lang/ClassLoader;") \
632 template(void_BuiltinClassLoader_signature, "()Ljdk/internal/loader/BuiltinClassLoader;") \
633 template(void_object_signature, "()Ljava/lang/Object;") \
634 template(void_class_signature, "()Ljava/lang/Class;") \
635 template(void_class_array_signature, "()[Ljava/lang/Class;") \
636 template(void_string_signature, "()Ljava/lang/String;") \
637 template(void_module_signature, "()Ljava/lang/Module;") \
638 template(object_array_object_signature, "([Ljava/lang/Object;)Ljava/lang/Object;") \
639 template(object_object_array_object_signature, "(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;")\
640 template(exception_void_signature, "(Ljava/lang/Exception;)V") \
641 template(protectiondomain_signature, "[Ljava/security/ProtectionDomain;") \
642 template(accesscontrolcontext_signature, "Ljava/security/AccessControlContext;") \
746 template(addUses_signature, "(Ljava/lang/Module;Ljava/lang/Class;)V") \
747 template(addProvides_name, "addProvides") \
748 template(addProvides_signature, "(Ljava/lang/Module;Ljava/lang/Class;Ljava/lang/Class;)V") \
749 template(loadModule_name, "loadModule") \
750 template(loadModule_signature, "(Ljava/lang/String;)Ljava/lang/Module;") \
751 template(transformedByAgent_name, "transformedByAgent") \
752 template(transformedByAgent_signature, "(Ljava/lang/Module;)V") \
753 template(appendToClassPathForInstrumentation_name, "appendToClassPathForInstrumentation") \
754 do_alias(appendToClassPathForInstrumentation_signature, string_void_signature) \
755 template(serializePropertiesToByteArray_name, "serializePropertiesToByteArray") \
756 template(serializeAgentPropertiesToByteArray_name, "serializeAgentPropertiesToByteArray") \
757 template(encodeThrowable_name, "encodeThrowable") \
758 template(encodeThrowable_signature, "(Ljava/lang/Throwable;JI)I") \
759 template(decodeAndThrowThrowable_name, "decodeAndThrowThrowable") \
760 template(encodeAnnotations_name, "encodeAnnotations") \
761 template(encodeAnnotations_signature, "([BLjava/lang/Class;Ljdk/internal/reflect/ConstantPool;Z[Ljava/lang/Class;)[B")\
762 template(decodeAndThrowThrowable_signature, "(IJZ)V") \
763 template(classRedefinedCount_name, "classRedefinedCount") \
764 template(classLoader_name, "classLoader") \
765 template(componentType_name, "componentType") \
766 \
767 /* forEachRemaining support */ \
768 template(java_util_stream_StreamsRangeIntSpliterator, "java/util/stream/Streams$RangeIntSpliterator") \
769 \
770 /* jfr signatures */ \
771 JFR_TEMPLATES(template) \
772 \
773 /* CDS */ \
774 template(dumpSharedArchive, "dumpSharedArchive") \
775 template(dumpSharedArchive_signature, "(ZLjava/lang/String;)Ljava/lang/String;") \
776 template(generateLambdaFormHolderClasses, "generateLambdaFormHolderClasses") \
777 template(generateLambdaFormHolderClasses_signature, "([Ljava/lang/String;)[Ljava/lang/Object;") \
778 template(java_lang_Enum, "java/lang/Enum") \
779 template(java_lang_invoke_Invokers_Holder, "java/lang/invoke/Invokers$Holder") \
780 template(java_lang_invoke_DirectMethodHandle_Holder, "java/lang/invoke/DirectMethodHandle$Holder") \
781 template(java_lang_invoke_LambdaForm_Holder, "java/lang/invoke/LambdaForm$Holder") \
782 template(java_lang_invoke_DelegatingMethodHandle_Holder, "java/lang/invoke/DelegatingMethodHandle$Holder") \
783 template(jdk_internal_loader_ClassLoaders, "jdk/internal/loader/ClassLoaders") \
784 template(jdk_internal_misc_CDS, "jdk/internal/misc/CDS") \
785 template(java_util_concurrent_ConcurrentHashMap, "java/util/concurrent/ConcurrentHashMap") \
786 template(java_util_ArrayList, "java/util/ArrayList") \
787 template(toFileURL_name, "toFileURL") \
788 template(toFileURL_signature, "(Ljava/lang/String;)Ljava/net/URL;") \
789 template(url_void_signature, "(Ljava/net/URL;)V") \
790 template(url_array_classloader_void_signature, "([Ljava/net/URL;Ljava/lang/ClassLoader;)V") \
791 \
792 /* Thread.dump_to_file jcmd */ \
793 template(jdk_internal_vm_ThreadDumper, "jdk/internal/vm/ThreadDumper") \
794 template(dumpThreads_name, "dumpThreads") \
795 template(dumpThreadsToJson_name, "dumpThreadsToJson") \
796
797 /*end*/
798
799 // enum for figuring positions and size of Symbol::_vm_symbols[]
800 enum class vmSymbolID : int {
801 // [FIRST_SID ... LAST_SID] is the iteration range for the *valid* symbols.
802 // NO_SID is used to indicate an invalid symbol. Some implementation code
803 // *may* read _vm_symbols[NO_SID], so it must be a valid array index.
804 NO_SID = 0, // exclusive lower limit
805
806 #define VM_SYMBOL_ENUM(name, string) VM_SYMBOL_ENUM_NAME_(name),
807 VM_SYMBOLS_DO(VM_SYMBOL_ENUM, VM_ALIAS_IGNORE)
808 #undef VM_SYMBOL_ENUM
809
810 SID_LIMIT, // exclusive upper limit
811
|
164 \
165 /* Java runtime version access */ \
166 template(java_lang_VersionProps, "java/lang/VersionProps") \
167 template(java_version_name, "java_version") \
168 template(java_runtime_name_name, "java_runtime_name") \
169 template(java_runtime_version_name, "java_runtime_version") \
170 template(java_runtime_vendor_version_name, "VENDOR_VERSION") \
171 template(java_runtime_vendor_vm_bug_url_name, "VENDOR_URL_VM_BUG") \
172 \
173 /* system initialization */ \
174 template(initPhase1_name, "initPhase1") \
175 template(initPhase2_name, "initPhase2") \
176 template(initPhase3_name, "initPhase3") \
177 template(java_lang_module_init_signature, "(Ljava/lang/ClassLoader;Ljava/lang/String;)V") \
178 \
179 /* class file format tags */ \
180 template(tag_source_file, "SourceFile") \
181 template(tag_inner_classes, "InnerClasses") \
182 template(tag_nest_members, "NestMembers") \
183 template(tag_nest_host, "NestHost") \
184 template(tag_preload, "Preload") \
185 template(tag_constant_value, "ConstantValue") \
186 template(tag_code, "Code") \
187 template(tag_exceptions, "Exceptions") \
188 template(tag_line_number_table, "LineNumberTable") \
189 template(tag_local_variable_table, "LocalVariableTable") \
190 template(tag_local_variable_type_table, "LocalVariableTypeTable") \
191 template(tag_method_parameters, "MethodParameters") \
192 template(tag_stack_map_table, "StackMapTable") \
193 template(tag_synthetic, "Synthetic") \
194 template(tag_deprecated, "Deprecated") \
195 template(tag_source_debug_extension, "SourceDebugExtension") \
196 template(tag_signature, "Signature") \
197 template(tag_record, "Record") \
198 template(tag_runtime_visible_annotations, "RuntimeVisibleAnnotations") \
199 template(tag_runtime_invisible_annotations, "RuntimeInvisibleAnnotations") \
200 template(tag_runtime_visible_parameter_annotations, "RuntimeVisibleParameterAnnotations") \
201 template(tag_runtime_invisible_parameter_annotations,"RuntimeInvisibleParameterAnnotations") \
202 template(tag_annotation_default, "AnnotationDefault") \
203 template(tag_runtime_visible_type_annotations, "RuntimeVisibleTypeAnnotations") \
204 template(tag_runtime_invisible_type_annotations, "RuntimeInvisibleTypeAnnotations") \
374 template(jdk_internal_foreign_abi_VMStorage_signature, "Ljdk/internal/foreign/abi/VMStorage;") \
375 template(jdk_internal_foreign_abi_VMStorage_array_signature, "[Ljdk/internal/foreign/abi/VMStorage;") \
376 template(jdk_internal_foreign_abi_VMStorage_array_array_signature, "[[Ljdk/internal/foreign/abi/VMStorage;") \
377 template(jdk_internal_foreign_abi_CallConv, "jdk/internal/foreign/abi/UpcallLinker$CallRegs") \
378 \
379 /* Support for JVMCI */ \
380 JVMCI_VM_SYMBOLS_DO(template, do_alias) \
381 \
382 template(java_lang_StackWalker, "java/lang/StackWalker") \
383 template(java_lang_StackFrameInfo, "java/lang/StackFrameInfo") \
384 template(java_lang_LiveStackFrameInfo, "java/lang/LiveStackFrameInfo") \
385 template(java_lang_StackStreamFactory_AbstractStackWalker, "java/lang/StackStreamFactory$AbstractStackWalker") \
386 template(doStackWalk_signature, "(JIIII)Ljava/lang/Object;") \
387 template(asPrimitive_name, "asPrimitive") \
388 template(asPrimitive_int_signature, "(I)Ljava/lang/LiveStackFrame$PrimitiveSlot;") \
389 template(asPrimitive_long_signature, "(J)Ljava/lang/LiveStackFrame$PrimitiveSlot;") \
390 \
391 /* common method and field names */ \
392 template(object_initializer_name, "<init>") \
393 template(class_initializer_name, "<clinit>") \
394 template(inline_factory_name, "<vnew>") \
395 template(println_name, "println") \
396 template(printStackTrace_name, "printStackTrace") \
397 template(getStackTrace_name, "getStackTrace") \
398 template(main_name, "main") \
399 template(name_name, "name") \
400 template(priority_name, "priority") \
401 template(group_name, "group") \
402 template(daemon_name, "daemon") \
403 template(run_method_name, "run") \
404 template(runWith_method_name, "runWith") \
405 template(interrupt_method_name, "interrupt") \
406 template(exit_method_name, "exit") \
407 template(remove_method_name, "remove") \
408 template(parent_name, "parent") \
409 template(maxPriority_name, "maxPriority") \
410 template(shutdown_name, "shutdown") \
411 template(finalize_method_name, "finalize") \
412 template(reference_lock_name, "lock") \
413 template(reference_discovered_name, "discovered") \
414 template(run_finalization_name, "runFinalization") \
516 template(input_stream_signature, "Ljava/io/InputStream;") \
517 template(print_stream_signature, "Ljava/io/PrintStream;") \
518 template(security_manager_signature, "Ljava/lang/SecurityManager;") \
519 template(defineOrCheckPackage_name, "defineOrCheckPackage") \
520 template(defineOrCheckPackage_signature, "(Ljava/lang/String;Ljava/util/jar/Manifest;Ljava/net/URL;)Ljava/lang/Package;") \
521 template(getProtectionDomain_name, "getProtectionDomain") \
522 template(getProtectionDomain_signature, "(Ljava/security/CodeSource;)Ljava/security/ProtectionDomain;") \
523 template(java_lang_Integer_array_signature, "[Ljava/lang/Integer;") \
524 template(java_lang_Long_array_signature, "[Ljava/lang/Long;") \
525 template(java_lang_Character_array_signature, "[Ljava/lang/Character;") \
526 template(java_lang_Short_array_signature, "[Ljava/lang/Short;") \
527 template(java_lang_Byte_array_signature, "[Ljava/lang/Byte;") \
528 template(java_lang_Boolean_signature, "Ljava/lang/Boolean;") \
529 template(url_code_signer_array_void_signature, "(Ljava/net/URL;[Ljava/security/CodeSigner;)V") \
530 template(jvmti_thread_state_name, "jvmti_thread_state") \
531 template(jvmti_VTMS_transition_disable_count_name, "jvmti_VTMS_transition_disable_count") \
532 template(jvmti_is_in_VTMS_transition_name, "jvmti_is_in_VTMS_transition") \
533 template(module_entry_name, "module_entry") \
534 template(resolved_references_name, "<resolved_references>") \
535 template(init_lock_name, "<init_lock>") \
536 template(default_value_name, ".default") \
537 template(empty_marker_name, ".empty") \
538 template(address_size_name, "ADDRESS_SIZE0") \
539 template(page_size_name, "PAGE_SIZE") \
540 template(big_endian_name, "BIG_ENDIAN") \
541 template(use_unaligned_access_name, "UNALIGNED_ACCESS") \
542 template(data_cache_line_flush_size_name, "DATA_CACHE_LINE_FLUSH_SIZE") \
543 template(during_unsafe_access_name, "during_unsafe_access") \
544 template(checkIndex_name, "checkIndex") \
545 template(jfr_epoch_name, "jfr_epoch") \
546 template(maxThawingSize_name, "maxThawingSize") \
547 \
548 /* name symbols needed by intrinsics */ \
549 VM_INTRINSICS_DO(VM_INTRINSIC_IGNORE, VM_SYMBOL_IGNORE, template, VM_SYMBOL_IGNORE, VM_ALIAS_IGNORE) \
550 \
551 /* common signatures names */ \
552 template(void_method_signature, "()V") \
553 template(void_boolean_signature, "()Z") \
554 template(void_byte_signature, "()B") \
555 template(void_char_signature, "()C") \
556 template(void_short_signature, "()S") \
557 template(void_int_signature, "()I") \
594 template(continuation_signature, "Ljdk/internal/vm/Continuation;") \
595 template(continuationscope_signature, "Ljdk/internal/vm/ContinuationScope;") \
596 template(stackchunk_signature, "Ljdk/internal/vm/StackChunk;") \
597 template(vthread_signature, "Ljava/lang/VirtualThread;") \
598 template(object_void_signature, "(Ljava/lang/Object;)V") \
599 template(object_int_signature, "(Ljava/lang/Object;)I") \
600 template(long_object_long_signature, "(JLjava/lang/Object;)J") \
601 template(object_boolean_signature, "(Ljava/lang/Object;)Z") \
602 template(object_object_signature, "(Ljava/lang/Object;)Ljava/lang/Object;") \
603 template(string_void_signature, "(Ljava/lang/String;)V") \
604 template(string_int_signature, "(Ljava/lang/String;)I") \
605 template(string_byte_array_signature, "(Ljava/lang/String;)[B") \
606 template(string_bool_byte_array_signature, "(Ljava/lang/String;Z)[B") \
607 template(throwable_signature, "Ljava/lang/Throwable;") \
608 template(throwable_void_signature, "(Ljava/lang/Throwable;)V") \
609 template(void_throwable_signature, "()Ljava/lang/Throwable;") \
610 template(class_void_signature, "(Ljava/lang/Class;)V") \
611 template(class_int_signature, "(Ljava/lang/Class;)I") \
612 template(class_long_signature, "(Ljava/lang/Class;)J") \
613 template(class_boolean_signature, "(Ljava/lang/Class;)Z") \
614 template(class_class_signature, "(Ljava/lang/Class;)Ljava/lang/Class;") \
615 template(throwable_throwable_signature, "(Ljava/lang/Throwable;)Ljava/lang/Throwable;") \
616 template(throwable_string_void_signature, "(Ljava/lang/Throwable;Ljava/lang/String;)V") \
617 template(string_array_void_signature, "([Ljava/lang/String;)V") \
618 template(string_array_string_array_void_signature, "([Ljava/lang/String;[Ljava/lang/String;)V") \
619 template(thread_throwable_void_signature, "(Ljava/lang/Thread;Ljava/lang/Throwable;)V") \
620 template(thread_void_signature, "(Ljava/lang/Thread;)V") \
621 template(runnable_void_signature, "(Ljava/lang/Runnable;)V") \
622 template(threadgroup_runnable_void_signature, "(Ljava/lang/ThreadGroup;Ljava/lang/Runnable;)V") \
623 template(threadgroup_string_void_signature, "(Ljava/lang/ThreadGroup;Ljava/lang/String;)V") \
624 template(void_threadgroup_array_signature, "()[Ljava/lang/ThreadGroup;") \
625 template(string_class_signature, "(Ljava/lang/String;)Ljava/lang/Class;") \
626 template(string_boolean_class_signature, "(Ljava/lang/String;Z)Ljava/lang/Class;") \
627 template(object_object_object_signature, "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;") \
628 template(object_object_boolean_signature, "(Ljava/lang/Object;Ljava/lang/Object;)Z") \
629 template(string_string_string_signature, "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;") \
630 template(string_string_signature, "(Ljava/lang/String;)Ljava/lang/String;") \
631 template(classloader_string_long_signature, "(Ljava/lang/ClassLoader;Ljava/lang/String;)J") \
632 template(byte_array_void_signature, "([B)V") \
633 template(char_array_void_signature, "([C)V") \
634 template(int_int_void_signature, "(II)V") \
635 template(long_long_void_signature, "(JJ)V") \
636 template(void_byte_array_signature, "()[B") \
637 template(void_classloader_signature, "()Ljava/lang/ClassLoader;") \
638 template(void_BuiltinClassLoader_signature, "()Ljdk/internal/loader/BuiltinClassLoader;") \
639 template(void_object_signature, "()Ljava/lang/Object;") \
640 template(void_class_signature, "()Ljava/lang/Class;") \
641 template(void_class_array_signature, "()[Ljava/lang/Class;") \
642 template(void_string_signature, "()Ljava/lang/String;") \
643 template(void_module_signature, "()Ljava/lang/Module;") \
644 template(object_array_object_signature, "([Ljava/lang/Object;)Ljava/lang/Object;") \
645 template(object_object_array_object_signature, "(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;")\
646 template(exception_void_signature, "(Ljava/lang/Exception;)V") \
647 template(protectiondomain_signature, "[Ljava/security/ProtectionDomain;") \
648 template(accesscontrolcontext_signature, "Ljava/security/AccessControlContext;") \
752 template(addUses_signature, "(Ljava/lang/Module;Ljava/lang/Class;)V") \
753 template(addProvides_name, "addProvides") \
754 template(addProvides_signature, "(Ljava/lang/Module;Ljava/lang/Class;Ljava/lang/Class;)V") \
755 template(loadModule_name, "loadModule") \
756 template(loadModule_signature, "(Ljava/lang/String;)Ljava/lang/Module;") \
757 template(transformedByAgent_name, "transformedByAgent") \
758 template(transformedByAgent_signature, "(Ljava/lang/Module;)V") \
759 template(appendToClassPathForInstrumentation_name, "appendToClassPathForInstrumentation") \
760 do_alias(appendToClassPathForInstrumentation_signature, string_void_signature) \
761 template(serializePropertiesToByteArray_name, "serializePropertiesToByteArray") \
762 template(serializeAgentPropertiesToByteArray_name, "serializeAgentPropertiesToByteArray") \
763 template(encodeThrowable_name, "encodeThrowable") \
764 template(encodeThrowable_signature, "(Ljava/lang/Throwable;JI)I") \
765 template(decodeAndThrowThrowable_name, "decodeAndThrowThrowable") \
766 template(encodeAnnotations_name, "encodeAnnotations") \
767 template(encodeAnnotations_signature, "([BLjava/lang/Class;Ljdk/internal/reflect/ConstantPool;Z[Ljava/lang/Class;)[B")\
768 template(decodeAndThrowThrowable_signature, "(IJZ)V") \
769 template(classRedefinedCount_name, "classRedefinedCount") \
770 template(classLoader_name, "classLoader") \
771 template(componentType_name, "componentType") \
772 template(primaryType_name, "primaryType") \
773 template(secondaryType_name, "secondaryType") \
774 \
775 /* forEachRemaining support */ \
776 template(java_util_stream_StreamsRangeIntSpliterator, "java/util/stream/Streams$RangeIntSpliterator") \
777 \
778 /* jfr signatures */ \
779 JFR_TEMPLATES(template) \
780 \
781 /* CDS */ \
782 template(dumpSharedArchive, "dumpSharedArchive") \
783 template(dumpSharedArchive_signature, "(ZLjava/lang/String;)Ljava/lang/String;") \
784 template(generateLambdaFormHolderClasses, "generateLambdaFormHolderClasses") \
785 template(generateLambdaFormHolderClasses_signature, "([Ljava/lang/String;)[Ljava/lang/Object;") \
786 template(java_lang_Enum, "java/lang/Enum") \
787 template(java_lang_invoke_Invokers_Holder, "java/lang/invoke/Invokers$Holder") \
788 template(java_lang_invoke_DirectMethodHandle_Holder, "java/lang/invoke/DirectMethodHandle$Holder") \
789 template(java_lang_invoke_LambdaForm_Holder, "java/lang/invoke/LambdaForm$Holder") \
790 template(java_lang_invoke_DelegatingMethodHandle_Holder, "java/lang/invoke/DelegatingMethodHandle$Holder") \
791 template(jdk_internal_loader_ClassLoaders, "jdk/internal/loader/ClassLoaders") \
792 template(jdk_internal_misc_CDS, "jdk/internal/misc/CDS") \
793 template(java_util_concurrent_ConcurrentHashMap, "java/util/concurrent/ConcurrentHashMap") \
794 template(java_util_ArrayList, "java/util/ArrayList") \
795 template(toFileURL_name, "toFileURL") \
796 template(toFileURL_signature, "(Ljava/lang/String;)Ljava/net/URL;") \
797 template(url_void_signature, "(Ljava/net/URL;)V") \
798 template(url_array_classloader_void_signature, "([Ljava/net/URL;Ljava/lang/ClassLoader;)V") \
799 \
800 template(java_lang_runtime_ValueObjectMethods, "java/lang/runtime/ValueObjectMethods") \
801 template(isSubstitutable_name, "isSubstitutable") \
802 template(valueObjectHashCode_name, "valueObjectHashCode") \
803 template(jdk_internal_value_PrimitiveClass, "jdk/internal/value/PrimitiveClass") \
804 \
805 /* Thread.dump_to_file jcmd */ \
806 template(jdk_internal_vm_ThreadDumper, "jdk/internal/vm/ThreadDumper") \
807 template(dumpThreads_name, "dumpThreads") \
808 template(dumpThreadsToJson_name, "dumpThreadsToJson") \
809
810 /*end*/
811
812 // enum for figuring positions and size of Symbol::_vm_symbols[]
813 enum class vmSymbolID : int {
814 // [FIRST_SID ... LAST_SID] is the iteration range for the *valid* symbols.
815 // NO_SID is used to indicate an invalid symbol. Some implementation code
816 // *may* read _vm_symbols[NO_SID], so it must be a valid array index.
817 NO_SID = 0, // exclusive lower limit
818
819 #define VM_SYMBOL_ENUM(name, string) VM_SYMBOL_ENUM_NAME_(name),
820 VM_SYMBOLS_DO(VM_SYMBOL_ENUM, VM_ALIAS_IGNORE)
821 #undef VM_SYMBOL_ENUM
822
823 SID_LIMIT, // exclusive upper limit
824
|