< prev index next >

src/hotspot/share/classfile/vmSymbols.hpp

Print this page

 38 // Sample usage:
 39 //
 40 //   Symbol* obj       = vmSymbols::java_lang_Object();
 41 
 42 
 43 // Useful sub-macros exported by this header file:
 44 
 45 #define VM_SYMBOL_ENUM_NAME_(name)    name##_enum
 46 #define VM_SYMBOL_ENUM_NAME(name)    vmSymbolID::VM_SYMBOL_ENUM_NAME_(name)
 47 #define VM_INTRINSIC_IGNORE(id, class, name, sig, flags) /*ignored*/
 48 #define VM_SYMBOL_IGNORE(id, name)                       /*ignored*/
 49 #define VM_ALIAS_IGNORE(id, id2)                         /*ignored*/
 50 
 51 // Mapping function names to values. New entries should be added below.
 52 
 53 #define VM_SYMBOLS_DO(template, do_alias)                                                         \
 54   /* commonly used class, package, module names */                                                \
 55   template(java_base,                                 "java.base")                                \
 56   template(java_lang_System,                          "java/lang/System")                         \
 57   template(java_lang_Object,                          "java/lang/Object")                         \


 58   template(java_lang_Class,                           "java/lang/Class")                          \
 59   template(java_lang_Package,                         "java/lang/Package")                        \
 60   template(java_lang_Module,                          "java/lang/Module")                         \
 61   template(java_lang_String,                          "java/lang/String")                         \
 62   template(java_lang_StringLatin1,                    "java/lang/StringLatin1")                   \
 63   template(java_lang_StringUTF16,                     "java/lang/StringUTF16")                    \
 64   template(java_lang_Thread,                          "java/lang/Thread")                         \
 65   template(java_lang_ThreadGroup,                     "java/lang/ThreadGroup")                    \
 66   template(java_lang_Cloneable,                       "java/lang/Cloneable")                      \

 67   template(java_lang_Throwable,                       "java/lang/Throwable")                      \
 68   template(java_lang_ClassLoader,                     "java/lang/ClassLoader")                    \
 69   template(java_lang_ThreadDeath,                     "java/lang/ThreadDeath")                    \
 70   template(java_lang_Boolean,                         "java/lang/Boolean")                        \
 71   template(java_lang_Character,                       "java/lang/Character")                      \
 72   template(java_lang_Character_CharacterCache,        "java/lang/Character$CharacterCache")       \
 73   template(java_lang_CharacterDataLatin1,             "java/lang/CharacterDataLatin1")            \
 74   template(java_lang_Float,                           "java/lang/Float")                          \
 75   template(java_lang_Double,                          "java/lang/Double")                         \
 76   template(java_lang_Byte,                            "java/lang/Byte")                           \
 77   template(java_lang_Byte_ByteCache,                  "java/lang/Byte$ByteCache")                 \
 78   template(java_lang_Short,                           "java/lang/Short")                          \
 79   template(java_lang_Short_ShortCache,                "java/lang/Short$ShortCache")               \
 80   template(java_lang_Integer,                         "java/lang/Integer")                        \
 81   template(java_lang_Integer_IntegerCache,            "java/lang/Integer$IntegerCache")           \
 82   template(java_lang_Long,                            "java/lang/Long")                           \
 83   template(java_lang_Long_LongCache,                  "java/lang/Long$LongCache")                 \
 84                                                                                                   \
 85   template(jdk_internal_vm_vector_VectorSupport,      "jdk/internal/vm/vector/VectorSupport")               \
 86   template(jdk_internal_vm_vector_VectorPayload,      "jdk/internal/vm/vector/VectorSupport$VectorPayload") \

462   template(input_stream_void_signature,               "(Ljava/io/InputStream;)V")                 \
463   template(input_stream_signature,                    "Ljava/io/InputStream;")                    \
464   template(print_stream_signature,                    "Ljava/io/PrintStream;")                    \
465   template(security_manager_signature,                "Ljava/lang/SecurityManager;")              \
466   template(defineOrCheckPackage_name,                 "defineOrCheckPackage")                     \
467   template(defineOrCheckPackage_signature,            "(Ljava/lang/String;Ljava/util/jar/Manifest;Ljava/net/URL;)Ljava/lang/Package;") \
468   template(fileToEncodedURL_name,                     "fileToEncodedURL")                         \
469   template(fileToEncodedURL_signature,                "(Ljava/io/File;)Ljava/net/URL;")           \
470   template(getProtectionDomain_name,                  "getProtectionDomain")                      \
471   template(getProtectionDomain_signature,             "(Ljava/security/CodeSource;)Ljava/security/ProtectionDomain;") \
472   template(java_lang_Integer_array_signature,         "[Ljava/lang/Integer;")                     \
473   template(java_lang_Long_array_signature,            "[Ljava/lang/Long;")                        \
474   template(java_lang_Character_array_signature,       "[Ljava/lang/Character;")                   \
475   template(java_lang_Short_array_signature,           "[Ljava/lang/Short;")                       \
476   template(java_lang_Byte_array_signature,            "[Ljava/lang/Byte;")                        \
477   template(java_lang_Boolean_signature,               "Ljava/lang/Boolean;")                      \
478   template(url_code_signer_array_void_signature,      "(Ljava/net/URL;[Ljava/security/CodeSigner;)V") \
479   template(module_entry_name,                         "module_entry")                             \
480   template(resolved_references_name,                  "<resolved_references>")                    \
481   template(init_lock_name,                            "<init_lock>")                              \


482   template(address_size_name,                         "ADDRESS_SIZE0")                            \
483   template(page_size_name,                            "PAGE_SIZE")                                \
484   template(big_endian_name,                           "BIG_ENDIAN")                               \
485   template(use_unaligned_access_name,                 "UNALIGNED_ACCESS")                         \
486   template(data_cache_line_flush_size_name,           "DATA_CACHE_LINE_FLUSH_SIZE")               \
487   template(during_unsafe_access_name,                 "during_unsafe_access")                     \
488   template(checkIndex_name,                           "checkIndex")                               \
489                                                                                                   \
490   /* name symbols needed by intrinsics */                                                         \
491   VM_INTRINSICS_DO(VM_INTRINSIC_IGNORE, VM_SYMBOL_IGNORE, template, VM_SYMBOL_IGNORE, VM_ALIAS_IGNORE) \
492                                                                                                   \
493   /* common signatures names */                                                                   \
494   template(void_method_signature,                     "()V")                                      \
495   template(void_boolean_signature,                    "()Z")                                      \
496   template(void_byte_signature,                       "()B")                                      \
497   template(void_char_signature,                       "()C")                                      \
498   template(void_short_signature,                      "()S")                                      \
499   template(void_int_signature,                        "()I")                                      \
500   template(void_long_signature,                       "()J")                                      \
501   template(void_float_signature,                      "()F")                                      \

537   template(string_void_signature,                     "(Ljava/lang/String;)V")                    \
538   template(string_int_signature,                      "(Ljava/lang/String;)I")                    \
539   template(throwable_signature,                       "Ljava/lang/Throwable;")                    \
540   template(throwable_void_signature,                  "(Ljava/lang/Throwable;)V")                 \
541   template(void_throwable_signature,                  "()Ljava/lang/Throwable;")                  \
542   template(class_void_signature,                      "(Ljava/lang/Class;)V")                     \
543   template(class_int_signature,                       "(Ljava/lang/Class;)I")                     \
544   template(class_long_signature,                      "(Ljava/lang/Class;)J")                     \
545   template(class_boolean_signature,                   "(Ljava/lang/Class;)Z")                     \
546   template(throwable_throwable_signature,             "(Ljava/lang/Throwable;)Ljava/lang/Throwable;")             \
547   template(throwable_string_void_signature,           "(Ljava/lang/Throwable;Ljava/lang/String;)V")               \
548   template(string_array_void_signature,               "([Ljava/lang/String;)V")                                   \
549   template(string_array_string_array_void_signature,  "([Ljava/lang/String;[Ljava/lang/String;)V")                \
550   template(thread_throwable_void_signature,           "(Ljava/lang/Thread;Ljava/lang/Throwable;)V")               \
551   template(thread_void_signature,                     "(Ljava/lang/Thread;)V")                                    \
552   template(threadgroup_runnable_void_signature,       "(Ljava/lang/ThreadGroup;Ljava/lang/Runnable;)V")           \
553   template(threadgroup_string_void_signature,         "(Ljava/lang/ThreadGroup;Ljava/lang/String;)V")             \
554   template(string_class_signature,                    "(Ljava/lang/String;)Ljava/lang/Class;")                    \
555   template(string_boolean_class_signature,            "(Ljava/lang/String;Z)Ljava/lang/Class;")                   \
556   template(object_object_object_signature,            "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;") \

557   template(string_string_string_signature,            "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;") \
558   template(string_string_signature,                   "(Ljava/lang/String;)Ljava/lang/String;")                   \
559   template(classloader_string_long_signature,         "(Ljava/lang/ClassLoader;Ljava/lang/String;)J")             \
560   template(byte_array_void_signature,                 "([B)V")                                                    \
561   template(char_array_void_signature,                 "([C)V")                                                    \
562   template(int_int_void_signature,                    "(II)V")                                                    \
563   template(long_long_void_signature,                  "(JJ)V")                                                    \
564   template(void_classloader_signature,                "()Ljava/lang/ClassLoader;")                                \
565   template(void_object_signature,                     "()Ljava/lang/Object;")                                     \
566   template(void_class_signature,                      "()Ljava/lang/Class;")                                      \
567   template(void_class_array_signature,                "()[Ljava/lang/Class;")                                     \
568   template(void_string_signature,                     "()Ljava/lang/String;")                                     \
569   template(void_module_signature,                     "()Ljava/lang/Module;")                                     \
570   template(object_array_object_signature,             "([Ljava/lang/Object;)Ljava/lang/Object;")                  \
571   template(object_object_array_object_signature,      "(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;")\
572   template(exception_void_signature,                  "(Ljava/lang/Exception;)V")                                 \
573   template(protectiondomain_signature,                "[Ljava/security/ProtectionDomain;")                        \
574   template(accesscontrolcontext_signature,            "Ljava/security/AccessControlContext;")                     \
575   template(class_protectiondomain_signature,          "(Ljava/lang/Class;Ljava/security/ProtectionDomain;)V")     \
576   template(thread_signature,                          "Ljava/lang/Thread;")                                       \

671   template(addReads_signature,                         "(Ljava/lang/Module;Ljava/lang/Module;)V")                 \
672   template(addExports_name,                            "addExports")                                              \
673   template(addOpens_name,                              "addOpens")                                                \
674   template(addExports_signature,                       "(Ljava/lang/Module;Ljava/lang/String;Ljava/lang/Module;)V") \
675   template(addUses_name,                               "addUses")                                                 \
676   template(addUses_signature,                          "(Ljava/lang/Module;Ljava/lang/Class;)V")                  \
677   template(addProvides_name,                           "addProvides")                                             \
678   template(addProvides_signature,                      "(Ljava/lang/Module;Ljava/lang/Class;Ljava/lang/Class;)V") \
679   template(loadModule_name,                            "loadModule")                                              \
680   template(loadModule_signature,                       "(Ljava/lang/String;)Ljava/lang/Module;")                  \
681   template(transformedByAgent_name,                    "transformedByAgent")                                      \
682   template(transformedByAgent_signature,               "(Ljava/lang/Module;)V")                                   \
683   template(appendToClassPathForInstrumentation_name,   "appendToClassPathForInstrumentation")                     \
684   do_alias(appendToClassPathForInstrumentation_signature, string_void_signature)                                  \
685   template(serializePropertiesToByteArray_name,        "serializePropertiesToByteArray")                          \
686   template(serializePropertiesToByteArray_signature,   "()[B")                                                    \
687   template(serializeAgentPropertiesToByteArray_name,   "serializeAgentPropertiesToByteArray")                     \
688   template(classRedefinedCount_name,                   "classRedefinedCount")                                     \
689   template(classLoader_name,                           "classLoader")                                             \
690   template(componentType_name,                         "componentType")                                           \


691                                                                                                                   \
692   /* forEachRemaining support */                                                                                  \
693   template(java_util_stream_StreamsRangeIntSpliterator,          "java/util/stream/Streams$RangeIntSpliterator")  \
694                                                                                                                   \
695   /* jfr signatures */                                                                                            \
696   JFR_TEMPLATES(template)                                                                                         \
697                                                                                                                   \
698   /* CDS */                                                                                                       \
699   template(dumpSharedArchive,                               "dumpSharedArchive")                                  \
700   template(dumpSharedArchive_signature,                     "(ZLjava/lang/String;)Ljava/lang/String;")            \
701   template(generateLambdaFormHolderClasses,                 "generateLambdaFormHolderClasses")                    \
702   template(generateLambdaFormHolderClasses_signature,       "([Ljava/lang/String;)[Ljava/lang/Object;")           \
703   template(java_lang_invoke_Invokers_Holder,                "java/lang/invoke/Invokers$Holder")                   \
704   template(java_lang_invoke_DirectMethodHandle_Holder,      "java/lang/invoke/DirectMethodHandle$Holder")         \
705   template(java_lang_invoke_LambdaForm_Holder,              "java/lang/invoke/LambdaForm$Holder")                 \
706   template(java_lang_invoke_DelegatingMethodHandle_Holder,  "java/lang/invoke/DelegatingMethodHandle$Holder")     \
707   template(jdk_internal_loader_ClassLoaders,                "jdk/internal/loader/ClassLoaders")                   \
708   template(jdk_internal_misc_CDS,                           "jdk/internal/misc/CDS")                              \
709   template(java_util_concurrent_ConcurrentHashMap,          "java/util/concurrent/ConcurrentHashMap")             \
710   template(java_util_ArrayList,                             "java/util/ArrayList")                                \
711   template(toFileURL_name,                                  "toFileURL")                                          \
712   template(toFileURL_signature,                             "(Ljava/lang/String;)Ljava/net/URL;")                 \
713   template(url_void_signature,                              "(Ljava/net/URL;)V")                                  \
714   template(url_array_classloader_void_signature,            "([Ljava/net/URL;Ljava/lang/ClassLoader;)V")          \
715                                                                                                                   \




716   /*end*/
717 
718 // enum for figuring positions and size of Symbol::_vm_symbols[]
719 enum class vmSymbolID : int {
720   // [FIRST_SID ... LAST_SID] is the iteration range for the *valid* symbols.
721   // NO_SID is used to indicate an invalid symbol. Some implementation code
722   // *may* read _vm_symbols[NO_SID], so it must be a valid array index.
723   NO_SID = 0,                // exclusive lower limit
724 
725   #define VM_SYMBOL_ENUM(name, string) VM_SYMBOL_ENUM_NAME_(name),
726   VM_SYMBOLS_DO(VM_SYMBOL_ENUM, VM_ALIAS_IGNORE)
727   #undef VM_SYMBOL_ENUM
728 
729   SID_LIMIT,                 // exclusive upper limit
730 
731   #define VM_ALIAS_ENUM(name, def) VM_SYMBOL_ENUM_NAME_(name) = VM_SYMBOL_ENUM_NAME_(def),
732   VM_SYMBOLS_DO(VM_SYMBOL_IGNORE, VM_ALIAS_ENUM)
733   #undef VM_ALIAS_ENUM
734 
735   FIRST_SID = NO_SID + 1,    // inclusive lower limit

 38 // Sample usage:
 39 //
 40 //   Symbol* obj       = vmSymbols::java_lang_Object();
 41 
 42 
 43 // Useful sub-macros exported by this header file:
 44 
 45 #define VM_SYMBOL_ENUM_NAME_(name)    name##_enum
 46 #define VM_SYMBOL_ENUM_NAME(name)    vmSymbolID::VM_SYMBOL_ENUM_NAME_(name)
 47 #define VM_INTRINSIC_IGNORE(id, class, name, sig, flags) /*ignored*/
 48 #define VM_SYMBOL_IGNORE(id, name)                       /*ignored*/
 49 #define VM_ALIAS_IGNORE(id, id2)                         /*ignored*/
 50 
 51 // Mapping function names to values. New entries should be added below.
 52 
 53 #define VM_SYMBOLS_DO(template, do_alias)                                                         \
 54   /* commonly used class, package, module names */                                                \
 55   template(java_base,                                 "java.base")                                \
 56   template(java_lang_System,                          "java/lang/System")                         \
 57   template(java_lang_Object,                          "java/lang/Object")                         \
 58   template(java_lang_IdentityObject,                  "java/lang/IdentityObject")                 \
 59   template(java_lang_PrimitiveObject,                 "java/lang/PrimitiveObject")                \
 60   template(java_lang_Class,                           "java/lang/Class")                          \
 61   template(java_lang_Package,                         "java/lang/Package")                        \
 62   template(java_lang_Module,                          "java/lang/Module")                         \
 63   template(java_lang_String,                          "java/lang/String")                         \
 64   template(java_lang_StringLatin1,                    "java/lang/StringLatin1")                   \
 65   template(java_lang_StringUTF16,                     "java/lang/StringUTF16")                    \
 66   template(java_lang_Thread,                          "java/lang/Thread")                         \
 67   template(java_lang_ThreadGroup,                     "java/lang/ThreadGroup")                    \
 68   template(java_lang_Cloneable,                       "java/lang/Cloneable")                      \
 69   template(java_lang_NonTearable,                     "java/lang/NonTearable")                    \
 70   template(java_lang_Throwable,                       "java/lang/Throwable")                      \
 71   template(java_lang_ClassLoader,                     "java/lang/ClassLoader")                    \
 72   template(java_lang_ThreadDeath,                     "java/lang/ThreadDeath")                    \
 73   template(java_lang_Boolean,                         "java/lang/Boolean")                        \
 74   template(java_lang_Character,                       "java/lang/Character")                      \
 75   template(java_lang_Character_CharacterCache,        "java/lang/Character$CharacterCache")       \
 76   template(java_lang_CharacterDataLatin1,             "java/lang/CharacterDataLatin1")            \
 77   template(java_lang_Float,                           "java/lang/Float")                          \
 78   template(java_lang_Double,                          "java/lang/Double")                         \
 79   template(java_lang_Byte,                            "java/lang/Byte")                           \
 80   template(java_lang_Byte_ByteCache,                  "java/lang/Byte$ByteCache")                 \
 81   template(java_lang_Short,                           "java/lang/Short")                          \
 82   template(java_lang_Short_ShortCache,                "java/lang/Short$ShortCache")               \
 83   template(java_lang_Integer,                         "java/lang/Integer")                        \
 84   template(java_lang_Integer_IntegerCache,            "java/lang/Integer$IntegerCache")           \
 85   template(java_lang_Long,                            "java/lang/Long")                           \
 86   template(java_lang_Long_LongCache,                  "java/lang/Long$LongCache")                 \
 87                                                                                                   \
 88   template(jdk_internal_vm_vector_VectorSupport,      "jdk/internal/vm/vector/VectorSupport")               \
 89   template(jdk_internal_vm_vector_VectorPayload,      "jdk/internal/vm/vector/VectorSupport$VectorPayload") \

465   template(input_stream_void_signature,               "(Ljava/io/InputStream;)V")                 \
466   template(input_stream_signature,                    "Ljava/io/InputStream;")                    \
467   template(print_stream_signature,                    "Ljava/io/PrintStream;")                    \
468   template(security_manager_signature,                "Ljava/lang/SecurityManager;")              \
469   template(defineOrCheckPackage_name,                 "defineOrCheckPackage")                     \
470   template(defineOrCheckPackage_signature,            "(Ljava/lang/String;Ljava/util/jar/Manifest;Ljava/net/URL;)Ljava/lang/Package;") \
471   template(fileToEncodedURL_name,                     "fileToEncodedURL")                         \
472   template(fileToEncodedURL_signature,                "(Ljava/io/File;)Ljava/net/URL;")           \
473   template(getProtectionDomain_name,                  "getProtectionDomain")                      \
474   template(getProtectionDomain_signature,             "(Ljava/security/CodeSource;)Ljava/security/ProtectionDomain;") \
475   template(java_lang_Integer_array_signature,         "[Ljava/lang/Integer;")                     \
476   template(java_lang_Long_array_signature,            "[Ljava/lang/Long;")                        \
477   template(java_lang_Character_array_signature,       "[Ljava/lang/Character;")                   \
478   template(java_lang_Short_array_signature,           "[Ljava/lang/Short;")                       \
479   template(java_lang_Byte_array_signature,            "[Ljava/lang/Byte;")                        \
480   template(java_lang_Boolean_signature,               "Ljava/lang/Boolean;")                      \
481   template(url_code_signer_array_void_signature,      "(Ljava/net/URL;[Ljava/security/CodeSigner;)V") \
482   template(module_entry_name,                         "module_entry")                             \
483   template(resolved_references_name,                  "<resolved_references>")                    \
484   template(init_lock_name,                            "<init_lock>")                              \
485   template(default_value_name,                        ".default")                                 \
486   template(empty_marker_name,                         ".empty")                                   \
487   template(address_size_name,                         "ADDRESS_SIZE0")                            \
488   template(page_size_name,                            "PAGE_SIZE")                                \
489   template(big_endian_name,                           "BIG_ENDIAN")                               \
490   template(use_unaligned_access_name,                 "UNALIGNED_ACCESS")                         \
491   template(data_cache_line_flush_size_name,           "DATA_CACHE_LINE_FLUSH_SIZE")               \
492   template(during_unsafe_access_name,                 "during_unsafe_access")                     \
493   template(checkIndex_name,                           "checkIndex")                               \
494                                                                                                   \
495   /* name symbols needed by intrinsics */                                                         \
496   VM_INTRINSICS_DO(VM_INTRINSIC_IGNORE, VM_SYMBOL_IGNORE, template, VM_SYMBOL_IGNORE, VM_ALIAS_IGNORE) \
497                                                                                                   \
498   /* common signatures names */                                                                   \
499   template(void_method_signature,                     "()V")                                      \
500   template(void_boolean_signature,                    "()Z")                                      \
501   template(void_byte_signature,                       "()B")                                      \
502   template(void_char_signature,                       "()C")                                      \
503   template(void_short_signature,                      "()S")                                      \
504   template(void_int_signature,                        "()I")                                      \
505   template(void_long_signature,                       "()J")                                      \
506   template(void_float_signature,                      "()F")                                      \

542   template(string_void_signature,                     "(Ljava/lang/String;)V")                    \
543   template(string_int_signature,                      "(Ljava/lang/String;)I")                    \
544   template(throwable_signature,                       "Ljava/lang/Throwable;")                    \
545   template(throwable_void_signature,                  "(Ljava/lang/Throwable;)V")                 \
546   template(void_throwable_signature,                  "()Ljava/lang/Throwable;")                  \
547   template(class_void_signature,                      "(Ljava/lang/Class;)V")                     \
548   template(class_int_signature,                       "(Ljava/lang/Class;)I")                     \
549   template(class_long_signature,                      "(Ljava/lang/Class;)J")                     \
550   template(class_boolean_signature,                   "(Ljava/lang/Class;)Z")                     \
551   template(throwable_throwable_signature,             "(Ljava/lang/Throwable;)Ljava/lang/Throwable;")             \
552   template(throwable_string_void_signature,           "(Ljava/lang/Throwable;Ljava/lang/String;)V")               \
553   template(string_array_void_signature,               "([Ljava/lang/String;)V")                                   \
554   template(string_array_string_array_void_signature,  "([Ljava/lang/String;[Ljava/lang/String;)V")                \
555   template(thread_throwable_void_signature,           "(Ljava/lang/Thread;Ljava/lang/Throwable;)V")               \
556   template(thread_void_signature,                     "(Ljava/lang/Thread;)V")                                    \
557   template(threadgroup_runnable_void_signature,       "(Ljava/lang/ThreadGroup;Ljava/lang/Runnable;)V")           \
558   template(threadgroup_string_void_signature,         "(Ljava/lang/ThreadGroup;Ljava/lang/String;)V")             \
559   template(string_class_signature,                    "(Ljava/lang/String;)Ljava/lang/Class;")                    \
560   template(string_boolean_class_signature,            "(Ljava/lang/String;Z)Ljava/lang/Class;")                   \
561   template(object_object_object_signature,            "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;") \
562   template(object_object_boolean_signature,           "(Ljava/lang/Object;Ljava/lang/Object;)Z") \
563   template(string_string_string_signature,            "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;") \
564   template(string_string_signature,                   "(Ljava/lang/String;)Ljava/lang/String;")                   \
565   template(classloader_string_long_signature,         "(Ljava/lang/ClassLoader;Ljava/lang/String;)J")             \
566   template(byte_array_void_signature,                 "([B)V")                                                    \
567   template(char_array_void_signature,                 "([C)V")                                                    \
568   template(int_int_void_signature,                    "(II)V")                                                    \
569   template(long_long_void_signature,                  "(JJ)V")                                                    \
570   template(void_classloader_signature,                "()Ljava/lang/ClassLoader;")                                \
571   template(void_object_signature,                     "()Ljava/lang/Object;")                                     \
572   template(void_class_signature,                      "()Ljava/lang/Class;")                                      \
573   template(void_class_array_signature,                "()[Ljava/lang/Class;")                                     \
574   template(void_string_signature,                     "()Ljava/lang/String;")                                     \
575   template(void_module_signature,                     "()Ljava/lang/Module;")                                     \
576   template(object_array_object_signature,             "([Ljava/lang/Object;)Ljava/lang/Object;")                  \
577   template(object_object_array_object_signature,      "(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;")\
578   template(exception_void_signature,                  "(Ljava/lang/Exception;)V")                                 \
579   template(protectiondomain_signature,                "[Ljava/security/ProtectionDomain;")                        \
580   template(accesscontrolcontext_signature,            "Ljava/security/AccessControlContext;")                     \
581   template(class_protectiondomain_signature,          "(Ljava/lang/Class;Ljava/security/ProtectionDomain;)V")     \
582   template(thread_signature,                          "Ljava/lang/Thread;")                                       \

677   template(addReads_signature,                         "(Ljava/lang/Module;Ljava/lang/Module;)V")                 \
678   template(addExports_name,                            "addExports")                                              \
679   template(addOpens_name,                              "addOpens")                                                \
680   template(addExports_signature,                       "(Ljava/lang/Module;Ljava/lang/String;Ljava/lang/Module;)V") \
681   template(addUses_name,                               "addUses")                                                 \
682   template(addUses_signature,                          "(Ljava/lang/Module;Ljava/lang/Class;)V")                  \
683   template(addProvides_name,                           "addProvides")                                             \
684   template(addProvides_signature,                      "(Ljava/lang/Module;Ljava/lang/Class;Ljava/lang/Class;)V") \
685   template(loadModule_name,                            "loadModule")                                              \
686   template(loadModule_signature,                       "(Ljava/lang/String;)Ljava/lang/Module;")                  \
687   template(transformedByAgent_name,                    "transformedByAgent")                                      \
688   template(transformedByAgent_signature,               "(Ljava/lang/Module;)V")                                   \
689   template(appendToClassPathForInstrumentation_name,   "appendToClassPathForInstrumentation")                     \
690   do_alias(appendToClassPathForInstrumentation_signature, string_void_signature)                                  \
691   template(serializePropertiesToByteArray_name,        "serializePropertiesToByteArray")                          \
692   template(serializePropertiesToByteArray_signature,   "()[B")                                                    \
693   template(serializeAgentPropertiesToByteArray_name,   "serializeAgentPropertiesToByteArray")                     \
694   template(classRedefinedCount_name,                   "classRedefinedCount")                                     \
695   template(classLoader_name,                           "classLoader")                                             \
696   template(componentType_name,                         "componentType")                                           \
697   template(primaryType_name,                           "primaryType")                                             \
698   template(secondaryType_name,                         "secondaryType")                                           \
699                                                                                                                   \
700   /* forEachRemaining support */                                                                                  \
701   template(java_util_stream_StreamsRangeIntSpliterator,          "java/util/stream/Streams$RangeIntSpliterator")  \
702                                                                                                                   \
703   /* jfr signatures */                                                                                            \
704   JFR_TEMPLATES(template)                                                                                         \
705                                                                                                                   \
706   /* CDS */                                                                                                       \
707   template(dumpSharedArchive,                               "dumpSharedArchive")                                  \
708   template(dumpSharedArchive_signature,                     "(ZLjava/lang/String;)Ljava/lang/String;")            \
709   template(generateLambdaFormHolderClasses,                 "generateLambdaFormHolderClasses")                    \
710   template(generateLambdaFormHolderClasses_signature,       "([Ljava/lang/String;)[Ljava/lang/Object;")           \
711   template(java_lang_invoke_Invokers_Holder,                "java/lang/invoke/Invokers$Holder")                   \
712   template(java_lang_invoke_DirectMethodHandle_Holder,      "java/lang/invoke/DirectMethodHandle$Holder")         \
713   template(java_lang_invoke_LambdaForm_Holder,              "java/lang/invoke/LambdaForm$Holder")                 \
714   template(java_lang_invoke_DelegatingMethodHandle_Holder,  "java/lang/invoke/DelegatingMethodHandle$Holder")     \
715   template(jdk_internal_loader_ClassLoaders,                "jdk/internal/loader/ClassLoaders")                   \
716   template(jdk_internal_misc_CDS,                           "jdk/internal/misc/CDS")                              \
717   template(java_util_concurrent_ConcurrentHashMap,          "java/util/concurrent/ConcurrentHashMap")             \
718   template(java_util_ArrayList,                             "java/util/ArrayList")                                \
719   template(toFileURL_name,                                  "toFileURL")                                          \
720   template(toFileURL_signature,                             "(Ljava/lang/String;)Ljava/net/URL;")                 \
721   template(url_void_signature,                              "(Ljava/net/URL;)V")                                  \
722   template(url_array_classloader_void_signature,            "([Ljava/net/URL;Ljava/lang/ClassLoader;)V")          \
723                                                                                                                   \
724   template(java_lang_runtime_PrimitiveObjectMethods,        "java/lang/runtime/PrimitiveObjectMethods")           \
725   template(isSubstitutable_name,                            "isSubstitutable")                                    \
726   template(primitiveObjectHashCode_name,                    "primitiveObjectHashCode")                            \
727                                                                                                                   \
728   /*end*/
729 
730 // enum for figuring positions and size of Symbol::_vm_symbols[]
731 enum class vmSymbolID : int {
732   // [FIRST_SID ... LAST_SID] is the iteration range for the *valid* symbols.
733   // NO_SID is used to indicate an invalid symbol. Some implementation code
734   // *may* read _vm_symbols[NO_SID], so it must be a valid array index.
735   NO_SID = 0,                // exclusive lower limit
736 
737   #define VM_SYMBOL_ENUM(name, string) VM_SYMBOL_ENUM_NAME_(name),
738   VM_SYMBOLS_DO(VM_SYMBOL_ENUM, VM_ALIAS_IGNORE)
739   #undef VM_SYMBOL_ENUM
740 
741   SID_LIMIT,                 // exclusive upper limit
742 
743   #define VM_ALIAS_ENUM(name, def) VM_SYMBOL_ENUM_NAME_(name) = VM_SYMBOL_ENUM_NAME_(def),
744   VM_SYMBOLS_DO(VM_SYMBOL_IGNORE, VM_ALIAS_ENUM)
745   #undef VM_ALIAS_ENUM
746 
747   FIRST_SID = NO_SID + 1,    // inclusive lower limit
< prev index next >