rev 50306 : imported patch loom-fibers
rev 50307 : [mq]: cont

   1 /*
   2  * Copyright (c) 1997, 2018, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #ifndef SHARE_VM_CLASSFILE_VMSYMBOLS_HPP
  26 #define SHARE_VM_CLASSFILE_VMSYMBOLS_HPP
  27 
  28 #include "classfile/moduleEntry.hpp"
  29 #include "jfr/support/jfrIntrinsics.hpp"
  30 #include "jvmci/vmSymbols_jvmci.hpp"
  31 #include "memory/iterator.hpp"
  32 #include "oops/symbol.hpp"
  33 #include "utilities/macros.hpp"
  34 
  35 
  36 // The class vmSymbols is a name space for fast lookup of
  37 // symbols commonly used in the VM.
  38 //
  39 // Sample usage:
  40 //
  41 //   Symbol* obj       = vmSymbols::java_lang_Object();
  42 
  43 
  44 // Useful sub-macros exported by this header file:
  45 
  46 #define VM_SYMBOL_ENUM_NAME(name)    name##_enum
  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_NAME)                             \
  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_ClassLoader_NativeLibrary,       "java/lang/ClassLoader\x024NativeLibrary")  \
  70   template(java_lang_ThreadDeath,                     "java/lang/ThreadDeath")                    \
  71   template(java_lang_Runnable,                        "java/lang/Runnable")                       \
  72   /*template(java_lang_Continuation,                    "java/lang/Continuation")                 */\
  73   template(java_lang_ContinuationScope,               "java/lang/ContinuationScope")              \
  74   template(java_lang_Boolean,                         "java/lang/Boolean")                        \
  75   template(java_lang_Character,                       "java/lang/Character")                      \
  76   template(java_lang_Character_CharacterCache,        "java/lang/Character$CharacterCache")       \
  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   template(java_lang_Shutdown,                        "java/lang/Shutdown")                       \
  88   template(java_lang_ref_Reference,                   "java/lang/ref/Reference")                  \
  89   template(java_lang_ref_SoftReference,               "java/lang/ref/SoftReference")              \
  90   template(java_lang_ref_WeakReference,               "java/lang/ref/WeakReference")              \
  91   template(java_lang_ref_FinalReference,              "java/lang/ref/FinalReference")             \
  92   template(java_lang_ref_PhantomReference,            "java/lang/ref/PhantomReference")           \
  93   template(java_lang_ref_Finalizer,                   "java/lang/ref/Finalizer")                  \
  94   template(java_lang_reflect_AccessibleObject,        "java/lang/reflect/AccessibleObject")       \
  95   template(java_lang_reflect_Method,                  "java/lang/reflect/Method")                 \
  96   template(java_lang_reflect_Constructor,             "java/lang/reflect/Constructor")            \
  97   template(java_lang_reflect_Field,                   "java/lang/reflect/Field")                  \
  98   template(java_lang_reflect_Parameter,               "java/lang/reflect/Parameter")              \
  99   template(java_lang_reflect_Array,                   "java/lang/reflect/Array")                  \
 100   template(java_lang_StringBuffer,                    "java/lang/StringBuffer")                   \
 101   template(java_lang_StringBuilder,                   "java/lang/StringBuilder")                  \
 102   template(java_lang_CharSequence,                    "java/lang/CharSequence")                   \
 103   template(java_lang_SecurityManager,                 "java/lang/SecurityManager")                \
 104   template(java_security_AccessControlContext,        "java/security/AccessControlContext")       \
 105   template(java_security_CodeSource,                  "java/security/CodeSource")                 \
 106   template(java_security_ProtectionDomain,            "java/security/ProtectionDomain")           \
 107   template(java_security_SecureClassLoader,           "java/security/SecureClassLoader")          \
 108   template(java_net_URL,                              "java/net/URL")                             \
 109   template(java_util_jar_Manifest,                    "java/util/jar/Manifest")                   \
 110   template(java_io_OutputStream,                      "java/io/OutputStream")                     \
 111   template(java_io_Reader,                            "java/io/Reader")                           \
 112   template(java_io_BufferedReader,                    "java/io/BufferedReader")                   \
 113   template(java_io_File,                              "java/io/File")                             \
 114   template(java_io_FileInputStream,                   "java/io/FileInputStream")                  \
 115   template(java_io_ByteArrayInputStream,              "java/io/ByteArrayInputStream")             \
 116   template(java_io_Serializable,                      "java/io/Serializable")                     \
 117   template(java_util_Arrays,                          "java/util/Arrays")                         \
 118   template(java_util_Objects,                         "java/util/Objects")                        \
 119   template(java_util_Properties,                      "java/util/Properties")                     \
 120   template(java_util_Vector,                          "java/util/Vector")                         \
 121   template(java_util_AbstractList,                    "java/util/AbstractList")                   \
 122   template(java_util_Hashtable,                       "java/util/Hashtable")                      \
 123   template(java_lang_Compiler,                        "java/lang/Compiler")                       \
 124   template(jdk_internal_misc_Signal,                  "jdk/internal/misc/Signal")                 \
 125   template(jdk_internal_util_Preconditions,           "jdk/internal/util/Preconditions")          \
 126   template(java_lang_AssertionStatusDirectives,       "java/lang/AssertionStatusDirectives")      \
 127   template(getBootClassPathEntryForClass_name,        "getBootClassPathEntryForClass")            \
 128   template(jdk_internal_vm_PostVMInitHook,            "jdk/internal/vm/PostVMInitHook")           \
 129   template(sun_net_www_ParseUtil,                     "sun/net/www/ParseUtil")                    \
 130                                                                                                   \
 131   template(jdk_internal_loader_ClassLoaders_AppClassLoader,      "jdk/internal/loader/ClassLoaders$AppClassLoader")      \
 132   template(jdk_internal_loader_ClassLoaders_PlatformClassLoader, "jdk/internal/loader/ClassLoaders$PlatformClassLoader") \
 133                                                                                                   \
 134   /* Java runtime version access */                                                               \
 135   template(java_lang_VersionProps,                    "java/lang/VersionProps")                   \
 136   template(java_runtime_name_name,                    "java_runtime_name")                        \
 137   template(java_runtime_version_name,                 "java_runtime_version")                     \
 138                                                                                                   \
 139   /* system initialization */                                                                     \
 140   template(initPhase1_name,                           "initPhase1")                               \
 141   template(initPhase2_name,                           "initPhase2")                               \
 142   template(initPhase3_name,                           "initPhase3")                               \
 143   template(java_lang_module_init_signature,           "(Ljava/lang/ClassLoader;Ljava/lang/String;)V") \
 144                                                                                                   \
 145   /* class file format tags */                                                                    \
 146   template(tag_source_file,                           "SourceFile")                               \
 147   template(tag_inner_classes,                         "InnerClasses")                             \
 148   template(tag_constant_value,                        "ConstantValue")                            \
 149   template(tag_code,                                  "Code")                                     \
 150   template(tag_exceptions,                            "Exceptions")                               \
 151   template(tag_line_number_table,                     "LineNumberTable")                          \
 152   template(tag_local_variable_table,                  "LocalVariableTable")                       \
 153   template(tag_local_variable_type_table,             "LocalVariableTypeTable")                   \
 154   template(tag_method_parameters,                     "MethodParameters")                         \
 155   template(tag_stack_map_table,                       "StackMapTable")                            \
 156   template(tag_synthetic,                             "Synthetic")                                \
 157   template(tag_deprecated,                            "Deprecated")                               \
 158   template(tag_source_debug_extension,                "SourceDebugExtension")                     \
 159   template(tag_signature,                             "Signature")                                \
 160   template(tag_runtime_visible_annotations,           "RuntimeVisibleAnnotations")                \
 161   template(tag_runtime_invisible_annotations,         "RuntimeInvisibleAnnotations")              \
 162   template(tag_runtime_visible_parameter_annotations, "RuntimeVisibleParameterAnnotations")       \
 163   template(tag_runtime_invisible_parameter_annotations,"RuntimeInvisibleParameterAnnotations")    \
 164   template(tag_annotation_default,                    "AnnotationDefault")                        \
 165   template(tag_runtime_visible_type_annotations,      "RuntimeVisibleTypeAnnotations")            \
 166   template(tag_runtime_invisible_type_annotations,    "RuntimeInvisibleTypeAnnotations")          \
 167   template(tag_enclosing_method,                      "EnclosingMethod")                          \
 168   template(tag_bootstrap_methods,                     "BootstrapMethods")                         \
 169                                                                                                   \
 170   /* exception klasses: at least all exceptions thrown by the VM have entries here */             \
 171   template(java_lang_ArithmeticException,             "java/lang/ArithmeticException")            \
 172   template(java_lang_ArrayIndexOutOfBoundsException,  "java/lang/ArrayIndexOutOfBoundsException") \
 173   template(java_lang_ArrayStoreException,             "java/lang/ArrayStoreException")            \
 174   template(java_lang_ClassCastException,              "java/lang/ClassCastException")             \
 175   template(java_lang_ClassNotFoundException,          "java/lang/ClassNotFoundException")         \
 176   template(java_lang_CloneNotSupportedException,      "java/lang/CloneNotSupportedException")     \
 177   template(java_lang_IllegalAccessException,          "java/lang/IllegalAccessException")         \
 178   template(java_lang_IllegalArgumentException,        "java/lang/IllegalArgumentException")       \
 179   template(java_lang_IllegalStateException,           "java/lang/IllegalStateException")          \
 180   template(java_lang_IllegalMonitorStateException,    "java/lang/IllegalMonitorStateException")   \
 181   template(java_lang_IllegalThreadStateException,     "java/lang/IllegalThreadStateException")    \
 182   template(java_lang_IndexOutOfBoundsException,       "java/lang/IndexOutOfBoundsException")      \
 183   template(java_lang_InstantiationException,          "java/lang/InstantiationException")         \
 184   template(java_lang_InstantiationError,              "java/lang/InstantiationError")             \
 185   template(java_lang_InterruptedException,            "java/lang/InterruptedException")           \
 186   template(java_lang_BootstrapMethodError,            "java/lang/BootstrapMethodError")           \
 187   template(java_lang_LinkageError,                    "java/lang/LinkageError")                   \
 188   template(java_lang_NegativeArraySizeException,      "java/lang/NegativeArraySizeException")     \
 189   template(java_lang_NoSuchFieldException,            "java/lang/NoSuchFieldException")           \
 190   template(java_lang_NoSuchMethodException,           "java/lang/NoSuchMethodException")          \
 191   template(java_lang_NullPointerException,            "java/lang/NullPointerException")           \
 192   template(java_lang_StringIndexOutOfBoundsException, "java/lang/StringIndexOutOfBoundsException")\
 193   template(java_lang_UnsupportedOperationException,   "java/lang/UnsupportedOperationException")  \
 194   template(java_lang_InvalidClassException,           "java/lang/InvalidClassException")          \
 195   template(java_lang_reflect_InvocationTargetException, "java/lang/reflect/InvocationTargetException") \
 196   template(java_lang_Exception,                       "java/lang/Exception")                      \
 197   template(java_lang_RuntimeException,                "java/lang/RuntimeException")               \
 198   template(java_io_IOException,                       "java/io/IOException")                      \
 199   template(java_security_PrivilegedActionException,   "java/security/PrivilegedActionException")  \
 200                                                                                                   \
 201   /* error klasses: at least all errors thrown by the VM have entries here */                     \
 202   template(java_lang_AbstractMethodError,             "java/lang/AbstractMethodError")            \
 203   template(java_lang_ClassCircularityError,           "java/lang/ClassCircularityError")          \
 204   template(java_lang_ClassFormatError,                "java/lang/ClassFormatError")               \
 205   template(java_lang_UnsupportedClassVersionError,    "java/lang/UnsupportedClassVersionError")   \
 206   template(java_lang_Error,                           "java/lang/Error")                          \
 207   template(java_lang_ExceptionInInitializerError,     "java/lang/ExceptionInInitializerError")    \
 208   template(java_lang_IllegalAccessError,              "java/lang/IllegalAccessError")             \
 209   template(java_lang_IncompatibleClassChangeError,    "java/lang/IncompatibleClassChangeError")   \
 210   template(java_lang_InternalError,                   "java/lang/InternalError")                  \
 211   template(java_lang_NoClassDefFoundError,            "java/lang/NoClassDefFoundError")           \
 212   template(java_lang_NoSuchFieldError,                "java/lang/NoSuchFieldError")               \
 213   template(java_lang_NoSuchMethodError,               "java/lang/NoSuchMethodError")              \
 214   template(java_lang_OutOfMemoryError,                "java/lang/OutOfMemoryError")               \
 215   template(java_lang_UnsatisfiedLinkError,            "java/lang/UnsatisfiedLinkError")           \
 216   template(java_lang_VerifyError,                     "java/lang/VerifyError")                    \
 217   template(java_lang_SecurityException,               "java/lang/SecurityException")              \
 218   template(java_lang_VirtualMachineError,             "java/lang/VirtualMachineError")            \
 219   template(java_lang_StackOverflowError,              "java/lang/StackOverflowError")             \
 220   template(java_lang_StackTraceElement,               "java/lang/StackTraceElement")              \
 221                                                                                                   \
 222   /* Concurrency support */                                                                       \
 223   template(java_util_concurrent_locks_AbstractOwnableSynchronizer,           "java/util/concurrent/locks/AbstractOwnableSynchronizer") \
 224   template(java_util_concurrent_atomic_AtomicIntegerFieldUpdater_Impl,       "java/util/concurrent/atomic/AtomicIntegerFieldUpdater$AtomicIntegerFieldUpdaterImpl") \
 225   template(java_util_concurrent_atomic_AtomicLongFieldUpdater_CASUpdater,    "java/util/concurrent/atomic/AtomicLongFieldUpdater$CASUpdater") \
 226   template(java_util_concurrent_atomic_AtomicLongFieldUpdater_LockedUpdater, "java/util/concurrent/atomic/AtomicLongFieldUpdater$LockedUpdater") \
 227   template(java_util_concurrent_atomic_AtomicReferenceFieldUpdater_Impl,     "java/util/concurrent/atomic/AtomicReferenceFieldUpdater$AtomicReferenceFieldUpdaterImpl") \
 228   template(jdk_internal_vm_annotation_Contended_signature,                   "Ljdk/internal/vm/annotation/Contended;")    \
 229   template(jdk_internal_vm_annotation_ReservedStackAccess_signature,         "Ljdk/internal/vm/annotation/ReservedStackAccess;") \
 230                                                                                                   \
 231   /* class symbols needed by intrinsics */                                                        \
 232   VM_INTRINSICS_DO(VM_INTRINSIC_IGNORE, template, VM_SYMBOL_IGNORE, VM_SYMBOL_IGNORE, VM_ALIAS_IGNORE) \
 233                                                                                                   \
 234   /* Support for reflection based on dynamic bytecode generation (JDK 1.4 and above) */           \
 235                                                                                                   \
 236   template(jdk_internal_reflect,                      "jdk/internal/reflect")                     \
 237   template(reflect_MagicAccessorImpl,                 "jdk/internal/reflect/MagicAccessorImpl")       \
 238   template(reflect_MethodAccessorImpl,                "jdk/internal/reflect/MethodAccessorImpl")      \
 239   template(reflect_ConstructorAccessorImpl,           "jdk/internal/reflect/ConstructorAccessorImpl") \
 240   template(reflect_DelegatingClassLoader,             "jdk/internal/reflect/DelegatingClassLoader")   \
 241   template(reflect_Reflection,                        "jdk/internal/reflect/Reflection")              \
 242   template(reflect_CallerSensitive,                   "jdk/internal/reflect/CallerSensitive")         \
 243   template(reflect_CallerSensitive_signature,         "Ljdk/internal/reflect/CallerSensitive;")       \
 244   template(checkedExceptions_name,                    "checkedExceptions")                        \
 245   template(clazz_name,                                "clazz")                                    \
 246   template(exceptionTypes_name,                       "exceptionTypes")                           \
 247   template(modifiers_name,                            "modifiers")                                \
 248   template(newConstructor_name,                       "newConstructor")                           \
 249   template(newField_name,                             "newField")                                 \
 250   template(newMethod_name,                            "newMethod")                                \
 251   template(invokeBasic_name,                          "invokeBasic")                              \
 252   template(linkToVirtual_name,                        "linkToVirtual")                            \
 253   template(linkToStatic_name,                         "linkToStatic")                             \
 254   template(linkToSpecial_name,                        "linkToSpecial")                            \
 255   template(linkToInterface_name,                      "linkToInterface")                          \
 256   template(compiledLambdaForm_name,                   "<compiledLambdaForm>")  /*fake name*/      \
 257   template(star_name,                                 "*") /*not really a name*/                  \
 258   template(invoke_name,                               "invoke")                                   \
 259   template(parameterTypes_name,                       "parameterTypes")                           \
 260   template(returnType_name,                           "returnType")                               \
 261   template(signature_name,                            "signature")                                \
 262   template(slot_name,                                 "slot")                                     \
 263                                                                                                   \
 264   /* Support for annotations (JDK 1.5 and above) */                                               \
 265                                                                                                   \
 266   template(annotations_name,                          "annotations")                              \
 267   template(index_name,                                "index")                                    \
 268   template(executable_name,                           "executable")                               \
 269   template(parameter_annotations_name,                "parameterAnnotations")                     \
 270   template(annotation_default_name,                   "annotationDefault")                        \
 271   template(reflect_ConstantPool,                      "jdk/internal/reflect/ConstantPool")        \
 272   template(reflect_UnsafeStaticFieldAccessorImpl,     "jdk/internal/reflect/UnsafeStaticFieldAccessorImpl")\
 273   template(base_name,                                 "base")                                     \
 274   /* Type Annotations (JDK 8 and above) */                                                        \
 275   template(type_annotations_name,                     "typeAnnotations")                          \
 276                                                                                                   \
 277   /* Intrinsic Annotation (JDK 9 and above) */                                                    \
 278   template(jdk_internal_HotSpotIntrinsicCandidate_signature, "Ljdk/internal/HotSpotIntrinsicCandidate;") \
 279   template(jdk_internal_vm_annotation_ForceInline_signature, "Ljdk/internal/vm/annotation/ForceInline;") \
 280   template(jdk_internal_vm_annotation_DontInline_signature,  "Ljdk/internal/vm/annotation/DontInline;")  \
 281   template(jdk_internal_vm_annotation_Stable_signature,      "Ljdk/internal/vm/annotation/Stable;")      \
 282                                                                                                   \
 283   /* Support for JSR 292 & invokedynamic (JDK 1.7 and above) */                                   \
 284   template(java_lang_invoke_CallSite,                 "java/lang/invoke/CallSite")                \
 285   template(java_lang_invoke_ConstantCallSite,         "java/lang/invoke/ConstantCallSite")        \
 286   template(java_lang_invoke_DirectMethodHandle,       "java/lang/invoke/DirectMethodHandle")      \
 287   template(java_lang_invoke_MutableCallSite,          "java/lang/invoke/MutableCallSite")         \
 288   template(java_lang_invoke_VolatileCallSite,         "java/lang/invoke/VolatileCallSite")        \
 289   template(java_lang_invoke_MethodHandle,             "java/lang/invoke/MethodHandle")            \
 290   template(java_lang_invoke_VarHandle,                "java/lang/invoke/VarHandle")               \
 291   template(java_lang_invoke_MethodType,               "java/lang/invoke/MethodType")              \
 292   template(java_lang_invoke_MethodType_signature,     "Ljava/lang/invoke/MethodType;")            \
 293   template(java_lang_invoke_ResolvedMethodName_signature, "Ljava/lang/invoke/ResolvedMethodName;")\
 294   template(java_lang_invoke_MemberName_signature,     "Ljava/lang/invoke/MemberName;")            \
 295   template(java_lang_invoke_LambdaForm_signature,     "Ljava/lang/invoke/LambdaForm;")            \
 296   template(java_lang_invoke_MethodHandle_signature,   "Ljava/lang/invoke/MethodHandle;")          \
 297   /* internal classes known only to the JVM: */                                                   \
 298   template(java_lang_invoke_MemberName,               "java/lang/invoke/MemberName")              \
 299   template(java_lang_invoke_ResolvedMethodName,       "java/lang/invoke/ResolvedMethodName")      \
 300   template(java_lang_invoke_MethodHandleNatives,      "java/lang/invoke/MethodHandleNatives")     \
 301   template(java_lang_invoke_MethodHandleNatives_CallSiteContext, "java/lang/invoke/MethodHandleNatives$CallSiteContext") \
 302   template(java_lang_invoke_LambdaForm,               "java/lang/invoke/LambdaForm")              \
 303   template(java_lang_invoke_InjectedProfile_signature, "Ljava/lang/invoke/InjectedProfile;")      \
 304   template(java_lang_invoke_LambdaForm_Compiled_signature, "Ljava/lang/invoke/LambdaForm$Compiled;") \
 305   template(java_lang_invoke_LambdaForm_Hidden_signature, "Ljava/lang/invoke/LambdaForm$Hidden;")  \
 306   template(java_lang_invoke_MethodHandleNatives_CallSiteContext_signature, "Ljava/lang/invoke/MethodHandleNatives$CallSiteContext;") \
 307   /* internal up-calls made only by the JVM, via class sun.invoke.MethodHandleNatives: */         \
 308   template(findMethodHandleType_name,                 "findMethodHandleType")                     \
 309   template(findMethodHandleType_signature,       "(Ljava/lang/Class;[Ljava/lang/Class;)Ljava/lang/invoke/MethodType;") \
 310   template(invokeExact_name,                          "invokeExact")                              \
 311   template(linkMethodHandleConstant_name,             "linkMethodHandleConstant")                 \
 312   template(linkMethodHandleConstant_signature, "(Ljava/lang/Class;ILjava/lang/Class;Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/invoke/MethodHandle;") \
 313   template(linkMethod_name,                           "linkMethod")                               \
 314   template(linkMethod_signature, "(Ljava/lang/Class;ILjava/lang/Class;Ljava/lang/String;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/invoke/MemberName;") \
 315   template(linkDynamicConstant_name,                  "linkDynamicConstant")                      \
 316   template(linkDynamicConstant_signature, "(Ljava/lang/Object;ILjava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;") \
 317   template(linkCallSite_name,                         "linkCallSite")                             \
 318   template(linkCallSite_signature, "(Ljava/lang/Object;ILjava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/invoke/MemberName;") \
 319   template(setTargetNormal_name,                      "setTargetNormal")                          \
 320   template(setTargetVolatile_name,                    "setTargetVolatile")                        \
 321   template(setTarget_signature,                       "(Ljava/lang/invoke/MethodHandle;)V")       \
 322   template(DEFAULT_CONTEXT_name,                      "DEFAULT_CONTEXT")                          \
 323   NOT_LP64(  do_alias(intptr_signature,               int_signature)  )                           \
 324   LP64_ONLY( do_alias(intptr_signature,               long_signature) )                           \
 325                                                                                                                                       \
 326   /* Support for JVMCI */                                                                                                             \
 327   JVMCI_VM_SYMBOLS_DO(template, do_alias)                                                         \
 328                                                                                                   \
 329   template(java_lang_StackWalker,                     "java/lang/StackWalker")                    \
 330   template(java_lang_StackFrameInfo,                  "java/lang/StackFrameInfo")                 \
 331   template(java_lang_LiveStackFrameInfo,              "java/lang/LiveStackFrameInfo")             \
 332   template(java_lang_StackStreamFactory_AbstractStackWalker, "java/lang/StackStreamFactory$AbstractStackWalker") \
 333   template(doStackWalk_signature,                     "(JIIII)Ljava/lang/Object;")                \
 334   template(asPrimitive_name,                          "asPrimitive")                              \
 335   template(asPrimitive_int_signature,                 "(I)Ljava/lang/LiveStackFrame$PrimitiveSlot;") \
 336   template(asPrimitive_long_signature,                "(J)Ljava/lang/LiveStackFrame$PrimitiveSlot;") \
 337                                                                                                   \
 338   /* common method and field names */                                                             \
 339   template(object_initializer_name,                   "<init>")                                   \
 340   template(class_initializer_name,                    "<clinit>")                                 \
 341   template(println_name,                              "println")                                  \
 342   template(printStackTrace_name,                      "printStackTrace")                          \
 343   template(main_name,                                 "main")                                     \
 344   template(name_name,                                 "name")                                     \
 345   template(priority_name,                             "priority")                                 \
 346   template(stillborn_name,                            "stillborn")                                \
 347   template(group_name,                                "group")                                    \
 348   template(daemon_name,                               "daemon")                                   \
 349   template(run_method_name,                           "run")                                      \
 350   template(exit_method_name,                          "exit")                                     \
 351   template(add_method_name,                           "add")                                      \
 352   template(remove_method_name,                        "remove")                                   \
 353   template(parent_name,                               "parent")                                   \
 354   template(threads_name,                              "threads")                                  \
 355   template(groups_name,                               "groups")                                   \
 356   template(maxPriority_name,                          "maxPriority")                              \
 357   template(destroyed_name,                            "destroyed")                                \
 358   template(nthreads_name,                             "nthreads")                                 \
 359   template(ngroups_name,                              "ngroups")                                  \
 360   template(shutdown_method_name,                      "shutdown")                                 \
 361   template(bootstrapFinished_method_name,             "bootstrapFinished")                        \
 362   template(finalize_method_name,                      "finalize")                                 \
 363   template(reference_lock_name,                       "lock")                                     \
 364   template(reference_discovered_name,                 "discovered")                               \
 365   template(run_finalization_name,                     "runFinalization")                          \
 366   template(dispatchUncaughtException_name,            "dispatchUncaughtException")                \
 367   template(loadClass_name,                            "loadClass")                                \
 368   template(doYield_name,                              "doYield")                                  \
 369   template(doContinue_name,                           "doContinue")                               \
 370   template(getSP_name,                                "getSP")                                    \
 371   template(getFP_name,                                "getFP")                                    \
 372   template(runLevel_name,                             "runLevel")                                 \
 373   template(getPC_name,                                "getPC")                                    \
 374   template(enter_name,                                "enter")                                    \
 375   template(onContinue_name,                           "onContinue0")                              \
 376   template(getStacks_name,                            "getStacks")                                \
 377   template(onPinned_name,                             "onPinned0")                                \
 378   template(scope_name,                                "scope")                                    \
 379   template(entrySP_name,                              "entrySP")                                  \
 380   template(entryFP_name,                              "entryFP")                                  \
 381   template(entryPC_name,                              "entryPC")                                  \
 382   template(stack_name,                                "stack")                                    \
 383   template(maxSize_name,                              "maxSize")                                  \
 384   template(numFrames_name,                            "numFrames")                                \
 385   template(numInterpretedFrames_name,                 "numInterpretedFrames")                     \
 386   template(fp_name,                                   "fp")                                       \
 387   template(sp_name,                                   "sp")                                       \
 388   template(pc_name,                                   "pc")                                       \
 389   template(refStack_name,                             "refStack")                                 \
 390   template(refSP_name,                                "refSP")                                    \
 391   template(get_name,                                  "get")                                      \
 392   template(put_name,                                  "put")                                      \
 393   template(type_name,                                 "type")                                     \
 394   template(findNative_name,                           "findNative")                               \
 395   template(deadChild_name,                            "deadChild")                                \
 396   template(getFromClass_name,                         "getFromClass")                             \
 397   template(dispatch_name,                             "dispatch")                                 \
 398   template(getPlatformClassLoader_name,               "getPlatformClassLoader")                   \
 399   template(getSystemClassLoader_name,                 "getSystemClassLoader")                     \
 400   template(fillInStackTrace_name,                     "fillInStackTrace")                         \
 401   template(getCause_name,                             "getCause")                                 \
 402   template(initCause_name,                            "initCause")                                \
 403   template(setProperty_name,                          "setProperty")                              \
 404   template(getProperty_name,                          "getProperty")                              \
 405   template(context_name,                              "context")                                  \
 406   template(contextClassLoader_name,                   "contextClassLoader")                       \
 407   template(inheritedAccessControlContext_name,        "inheritedAccessControlContext")            \
 408   template(getClassContext_name,                      "getClassContext")                          \
 409   template(wait_name,                                 "wait")                                     \
 410   template(checkPackageAccess_name,                   "checkPackageAccess")                       \
 411   template(newInstance0_name,                         "newInstance0")                             \
 412   template(forName_name,                              "forName")                                  \
 413   template(forName0_name,                             "forName0")                                 \
 414   template(isJavaIdentifierStart_name,                "isJavaIdentifierStart")                    \
 415   template(isJavaIdentifierPart_name,                 "isJavaIdentifierPart")                     \
 416   template(cache_field_name,                          "cache")                                    \
 417   template(value_name,                                "value")                                    \
 418   template(compact_strings_name,                      "COMPACT_STRINGS")                          \
 419   template(numberOfLeadingZeros_name,                 "numberOfLeadingZeros")                     \
 420   template(numberOfTrailingZeros_name,                "numberOfTrailingZeros")                    \
 421   template(bitCount_name,                             "bitCount")                                 \
 422   template(profile_name,                              "profile")                                  \
 423   template(equals_name,                               "equals")                                   \
 424   template(length_name,                               "length")                                   \
 425   template(target_name,                               "target")                                   \
 426   template(toString_name,                             "toString")                                 \
 427   template(values_name,                               "values")                                   \
 428   template(receiver_name,                             "receiver")                                 \
 429   template(vmtarget_name,                             "vmtarget")                                 \
 430   template(vmholder_name,                             "vmholder")                                 \
 431   template(method_name,                               "method")                                   \
 432   template(vmindex_name,                              "vmindex")                                  \
 433   template(vmcount_name,                              "vmcount")                                  \
 434   template(flags_name,                                "flags")                                    \
 435   template(basicType_name,                            "basicType")                                \
 436   template(append_name,                               "append")                                   \
 437   template(klass_name,                                "klass")                                    \
 438   template(array_klass_name,                          "array_klass")                              \
 439   template(mid_name,                                  "mid")                                      \
 440   template(cpref_name,                                "cpref")                                    \
 441   template(version_name,                              "version")                                  \
 442   template(methodName_name,                           "methodName")                               \
 443   template(fileName_name,                             "fileName")                                 \
 444   template(lineNumber_name,                           "lineNumber")                               \
 445   template(oop_size_name,                             "oop_size")                                 \
 446   template(static_oop_field_count_name,               "static_oop_field_count")                   \
 447   template(protection_domain_name,                    "protection_domain")                        \
 448   template(signers_name,                              "signers_name")                             \
 449   template(loader_data_name,                          "loader_data")                              \
 450   template(vmdependencies_name,                       "vmdependencies")                           \
 451   template(loader_name,                               "loader")                                   \
 452   template(getModule_name,                            "getModule")                                \
 453   template(input_stream_void_signature,               "(Ljava/io/InputStream;)V")                 \
 454   template(input_stream_signature,                    "Ljava/io/InputStream;")                    \
 455   template(print_stream_signature,                    "Ljava/io/PrintStream;")                    \
 456   template(security_manager_signature,                "Ljava/lang/SecurityManager;")              \
 457   template(definePackage_name,                        "definePackage")                            \
 458   template(definePackage_signature,                   "(Ljava/lang/String;Ljava/lang/Module;)Ljava/lang/Package;") \
 459   template(defineOrCheckPackage_name,                 "defineOrCheckPackage")                     \
 460   template(defineOrCheckPackage_signature,            "(Ljava/lang/String;Ljava/util/jar/Manifest;Ljava/net/URL;)Ljava/lang/Package;") \
 461   template(fileToEncodedURL_name,                     "fileToEncodedURL")                         \
 462   template(fileToEncodedURL_signature,                "(Ljava/io/File;)Ljava/net/URL;")           \
 463   template(getProtectionDomain_name,                  "getProtectionDomain")                      \
 464   template(getProtectionDomain_signature,             "(Ljava/security/CodeSource;)Ljava/security/ProtectionDomain;") \
 465   template(url_code_signer_array_void_signature,      "(Ljava/net/URL;[Ljava/security/CodeSigner;)V") \
 466   template(module_entry_name,                         "module_entry")                             \
 467   template(resolved_references_name,                  "<resolved_references>")                    \
 468   template(init_lock_name,                            "<init_lock>")                              \
 469                                                                                                   \
 470   /* name symbols needed by intrinsics */                                                         \
 471   VM_INTRINSICS_DO(VM_INTRINSIC_IGNORE, VM_SYMBOL_IGNORE, template, VM_SYMBOL_IGNORE, VM_ALIAS_IGNORE) \
 472                                                                                                   \
 473   /* common signatures names */                                                                   \
 474   template(void_method_signature,                     "()V")                                      \
 475   template(void_boolean_signature,                    "()Z")                                      \
 476   template(void_byte_signature,                       "()B")                                      \
 477   template(void_char_signature,                       "()C")                                      \
 478   template(void_short_signature,                      "()S")                                      \
 479   template(void_int_signature,                        "()I")                                      \
 480   template(void_long_signature,                       "()J")                                      \
 481   template(void_float_signature,                      "()F")                                      \
 482   template(void_double_signature,                     "()D")                                      \
 483   template(bool_void_signature,                       "(Z)V")                                     \
 484   template(int_void_signature,                        "(I)V")                                     \
 485   template(int_int_signature,                         "(I)I")                                     \
 486   template(char_char_signature,                       "(C)C")                                     \
 487   template(short_short_signature,                     "(S)S")                                     \
 488   template(int_bool_signature,                        "(I)Z")                                     \
 489   template(float_int_signature,                       "(F)I")                                     \
 490   template(double_long_signature,                     "(D)J")                                     \
 491   template(double_double_signature,                   "(D)D")                                     \
 492   template(int_float_signature,                       "(I)F")                                     \
 493   template(long_int_signature,                        "(J)I")                                     \
 494   template(long_long_signature,                       "(J)J")                                     \
 495   template(long_double_signature,                     "(J)D")                                     \
 496   template(byte_signature,                            "B")                                        \
 497   template(char_signature,                            "C")                                        \
 498   template(double_signature,                          "D")                                        \
 499   template(float_signature,                           "F")                                        \
 500   template(int_signature,                             "I")                                        \
 501   template(long_signature,                            "J")                                        \
 502   template(short_signature,                           "S")                                        \
 503   template(bool_signature,                            "Z")                                        \
 504   template(void_signature,                            "V")                                        \
 505   template(bool_array_signature,                      "[Z")                                       \
 506   template(byte_array_signature,                      "[B")                                       \
 507   template(char_array_signature,                      "[C")                                       \
 508   template(int_array_signature,                       "[I")                                       \
 509   template(runnable_signature,                        "Ljava/lang/Runnable;")                     \
 510   template(continuation_signature,                    "Ljava/lang/Continuation;")                 \
 511   template(continuationscope_signature,               "Ljava/lang/ContinuationScope;")            \
 512   template(object_void_signature,                     "(Ljava/lang/Object;)V")                    \
 513   template(object_int_signature,                      "(Ljava/lang/Object;)I")                    \
 514   template(object_boolean_signature,                  "(Ljava/lang/Object;)Z")                    \
 515   template(object_object_signature,                   "(Ljava/lang/Object;)Ljava/lang/Object;")   \
 516   template(string_void_signature,                     "(Ljava/lang/String;)V")                    \
 517   template(string_int_signature,                      "(Ljava/lang/String;)I")                    \
 518   template(throwable_void_signature,                  "(Ljava/lang/Throwable;)V")                 \
 519   template(void_throwable_signature,                  "()Ljava/lang/Throwable;")                  \
 520   template(throwable_throwable_signature,             "(Ljava/lang/Throwable;)Ljava/lang/Throwable;")             \
 521   template(class_void_signature,                      "(Ljava/lang/Class;)V")                     \
 522   template(class_int_signature,                       "(Ljava/lang/Class;)I")                     \
 523   template(class_long_signature,                      "(Ljava/lang/Class;)J")                     \
 524   template(class_boolean_signature,                   "(Ljava/lang/Class;)Z")                     \
 525   template(throwable_string_void_signature,           "(Ljava/lang/Throwable;Ljava/lang/String;)V")               \
 526   template(string_array_void_signature,               "([Ljava/lang/String;)V")                                   \
 527   template(string_array_string_array_void_signature,  "([Ljava/lang/String;[Ljava/lang/String;)V")                \
 528   template(thread_throwable_void_signature,           "(Ljava/lang/Thread;Ljava/lang/Throwable;)V")               \
 529   template(thread_void_signature,                     "(Ljava/lang/Thread;)V")                                    \
 530   template(threadgroup_runnable_void_signature,       "(Ljava/lang/ThreadGroup;Ljava/lang/Runnable;)V")           \
 531   template(threadgroup_string_void_signature,         "(Ljava/lang/ThreadGroup;Ljava/lang/String;)V")             \
 532   template(string_class_signature,                    "(Ljava/lang/String;)Ljava/lang/Class;")                    \
 533   template(object_object_object_signature,            "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;") \
 534   template(string_string_string_signature,            "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;") \
 535   template(string_string_signature,                   "(Ljava/lang/String;)Ljava/lang/String;")                   \
 536   template(classloader_string_long_signature,         "(Ljava/lang/ClassLoader;Ljava/lang/String;)J")             \
 537   template(byte_array_void_signature,                 "([B)V")                                                    \
 538   template(char_array_void_signature,                 "([C)V")                                                    \
 539   template(int_int_void_signature,                    "(II)V")                                                    \
 540   template(long_long_void_signature,                  "(JJ)V")                                                    \
 541   template(void_classloader_signature,                "()Ljava/lang/ClassLoader;")                                \
 542   template(void_object_signature,                     "()Ljava/lang/Object;")                                     \
 543   template(void_class_signature,                      "()Ljava/lang/Class;")                                      \
 544   template(void_class_array_signature,                "()[Ljava/lang/Class;")                                     \
 545   template(void_string_signature,                     "()Ljava/lang/String;")                                     \
 546   template(void_module_signature,                     "()Ljava/lang/Module;")                                     \
 547   template(object_array_object_signature,             "([Ljava/lang/Object;)Ljava/lang/Object;")                  \
 548   template(object_object_array_object_signature,      "(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;")\
 549   template(exception_void_signature,                  "(Ljava/lang/Exception;)V")                                 \
 550   template(protectiondomain_signature,                "[Ljava/security/ProtectionDomain;")                        \
 551   template(accesscontrolcontext_signature,            "Ljava/security/AccessControlContext;")                     \
 552   template(class_protectiondomain_signature,          "(Ljava/lang/Class;Ljava/security/ProtectionDomain;)V")     \
 553   template(thread_signature,                          "Ljava/lang/Thread;")                                       \
 554   template(thread_array_signature,                    "[Ljava/lang/Thread;")                                      \
 555   template(threadgroup_signature,                     "Ljava/lang/ThreadGroup;")                                  \
 556   template(threadgroup_array_signature,               "[Ljava/lang/ThreadGroup;")                                 \
 557   template(class_array_signature,                     "[Ljava/lang/Class;")                                       \
 558   template(classloader_signature,                     "Ljava/lang/ClassLoader;")                                  \
 559   template(object_signature,                          "Ljava/lang/Object;")                                       \
 560   template(object_array_signature,                    "[Ljava/lang/Object;")                                      \
 561   template(class_signature,                           "Ljava/lang/Class;")                                        \
 562   template(string_signature,                          "Ljava/lang/String;")                                       \
 563   template(string_array_signature,                    "[Ljava/lang/String;")                                      \
 564   template(reference_signature,                       "Ljava/lang/ref/Reference;")                                \
 565   template(executable_signature,                      "Ljava/lang/reflect/Executable;")                           \
 566   template(module_signature,                          "Ljava/lang/Module;")                                       \
 567   template(concurrenthashmap_signature,               "Ljava/util/concurrent/ConcurrentHashMap;")                 \
 568   template(String_StringBuilder_signature,            "(Ljava/lang/String;)Ljava/lang/StringBuilder;")            \
 569   template(int_StringBuilder_signature,               "(I)Ljava/lang/StringBuilder;")                             \
 570   template(char_StringBuilder_signature,              "(C)Ljava/lang/StringBuilder;")                             \
 571   template(String_StringBuffer_signature,             "(Ljava/lang/String;)Ljava/lang/StringBuffer;")             \
 572   template(int_StringBuffer_signature,                "(I)Ljava/lang/StringBuffer;")                              \
 573   template(char_StringBuffer_signature,               "(C)Ljava/lang/StringBuffer;")                              \
 574   template(int_String_signature,                      "(I)Ljava/lang/String;")                                    \
 575   template(boolean_boolean_int_signature,             "(ZZ)I")                                                    \
 576   template(codesource_permissioncollection_signature, "(Ljava/security/CodeSource;Ljava/security/PermissionCollection;)V") \
 577   /* signature symbols needed by intrinsics */                                                                    \
 578   VM_INTRINSICS_DO(VM_INTRINSIC_IGNORE, VM_SYMBOL_IGNORE, VM_SYMBOL_IGNORE, template, VM_ALIAS_IGNORE)            \
 579                                                                                                                   \
 580   /* symbol aliases needed by intrinsics */                                                                       \
 581   VM_INTRINSICS_DO(VM_INTRINSIC_IGNORE, VM_SYMBOL_IGNORE, VM_SYMBOL_IGNORE, VM_SYMBOL_IGNORE, do_alias)           \
 582                                                                                                                   \
 583   /* returned by the C1 compiler in case there's not enough memory to allocate a new symbol*/                     \
 584   template(dummy_symbol,                              "illegal symbol")                                           \
 585                                                                                                                   \
 586   /* used by ClassFormatError when class name is not known yet */                                                 \
 587   template(unknown_class_name,                        "<Unknown>")                                                \
 588                                                                                                                   \
 589   /* JVM monitoring and management support */                                                                     \
 590   template(java_lang_StackTraceElement_array,          "[Ljava/lang/StackTraceElement;")                          \
 591   template(java_lang_management_ThreadState,           "java/lang/management/ThreadState")                        \
 592   template(java_lang_management_MemoryUsage,           "java/lang/management/MemoryUsage")                        \
 593   template(java_lang_management_ThreadInfo,            "java/lang/management/ThreadInfo")                         \
 594   template(jdk_internal_agent_Agent,                   "jdk/internal/agent/Agent")                                \
 595   template(sun_management_Sensor,                      "sun/management/Sensor")                                   \
 596   template(sun_management_ManagementFactoryHelper,     "sun/management/ManagementFactoryHelper")                  \
 597   template(com_sun_management_internal_DiagnosticCommandImpl,  "com/sun/management/internal/DiagnosticCommandImpl")     \
 598   template(com_sun_management_internal_GarbageCollectorExtImpl,"com/sun/management/internal/GarbageCollectorExtImpl")   \
 599   template(getDiagnosticCommandMBean_name,             "getDiagnosticCommandMBean")                               \
 600   template(getDiagnosticCommandMBean_signature,        "()Lcom/sun/management/DiagnosticCommandMBean;")           \
 601   template(getGcInfoBuilder_name,                      "getGcInfoBuilder")                                        \
 602   template(getGcInfoBuilder_signature,                 "()Lcom/sun/management/internal/GcInfoBuilder;")           \
 603   template(com_sun_management_GcInfo,                  "com/sun/management/GcInfo")                               \
 604   template(com_sun_management_GcInfo_constructor_signature, "(Lcom/sun/management/internal/GcInfoBuilder;JJJ[Ljava/lang/management/MemoryUsage;[Ljava/lang/management/MemoryUsage;[Ljava/lang/Object;)V") \
 605   template(createGCNotification_name,                  "createGCNotification")                                    \
 606   template(createGCNotification_signature,             "(JLjava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/sun/management/GcInfo;)V") \
 607   template(createDiagnosticFrameworkNotification_name, "createDiagnosticFrameworkNotification")                   \
 608   template(createMemoryPoolMBean_name,                 "createMemoryPoolMBean")                                   \
 609   template(createMemoryManagerMBean_name,              "createMemoryManagerMBean")                                \
 610   template(createGarbageCollectorMBean_name,           "createGarbageCollectorMBean")                             \
 611   template(createMemoryPoolMBean_signature,            "(Ljava/lang/String;ZJJ)Ljava/lang/management/MemoryPoolMBean;") \
 612   template(createMemoryManagerMBean_signature,         "(Ljava/lang/String;)Ljava/lang/management/MemoryManagerMBean;") \
 613   template(createGarbageCollectorMBean_signature,      "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/management/GarbageCollectorMBean;") \
 614   template(trigger_name,                               "trigger")                                                 \
 615   template(clear_name,                                 "clear")                                                   \
 616   template(trigger_method_signature,                   "(ILjava/lang/management/MemoryUsage;)V")                  \
 617   template(startAgent_name,                            "startAgent")                                              \
 618   template(startRemoteAgent_name,                      "startRemoteManagementAgent")                              \
 619   template(startLocalAgent_name,                       "startLocalManagementAgent")                               \
 620   template(stopRemoteAgent_name,                       "stopRemoteManagementAgent")                               \
 621   template(getAgentStatus_name,                        "getManagementAgentStatus")                                \
 622   template(java_lang_management_ThreadInfo_constructor_signature, "(Ljava/lang/Thread;ILjava/lang/Object;Ljava/lang/Thread;JJJJ[Ljava/lang/StackTraceElement;)V") \
 623   template(java_lang_management_ThreadInfo_with_locks_constructor_signature, "(Ljava/lang/Thread;ILjava/lang/Object;Ljava/lang/Thread;JJJJ[Ljava/lang/StackTraceElement;[Ljava/lang/Object;[I[Ljava/lang/Object;)V") \
 624   template(long_long_long_long_void_signature,         "(JJJJ)V")                                                 \
 625   template(finalizer_histogram_klass,                  "java/lang/ref/FinalizerHistogram")                        \
 626   template(void_finalizer_histogram_entry_array_signature,  "()[Ljava/lang/ref/FinalizerHistogram$Entry;")                        \
 627   template(get_finalizer_histogram_name,               "getFinalizerHistogram")                                   \
 628   template(finalizer_histogram_entry_name_field,       "className")                                               \
 629   template(finalizer_histogram_entry_count_field,      "instanceCount")                                           \
 630                                                                                                                   \
 631   template(java_lang_management_MemoryPoolMXBean,      "java/lang/management/MemoryPoolMXBean")                   \
 632   template(java_lang_management_MemoryManagerMXBean,   "java/lang/management/MemoryManagerMXBean")                \
 633   template(java_lang_management_GarbageCollectorMXBean,"java/lang/management/GarbageCollectorMXBean")             \
 634   template(gcInfoBuilder_name,                         "gcInfoBuilder")                                           \
 635   template(createMemoryPool_name,                      "createMemoryPool")                                        \
 636   template(createMemoryManager_name,                   "createMemoryManager")                                     \
 637   template(createGarbageCollector_name,                "createGarbageCollector")                                  \
 638   template(createMemoryPool_signature,                 "(Ljava/lang/String;ZJJ)Ljava/lang/management/MemoryPoolMXBean;") \
 639   template(createMemoryManager_signature,              "(Ljava/lang/String;)Ljava/lang/management/MemoryManagerMXBean;") \
 640   template(createGarbageCollector_signature,           "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/management/GarbageCollectorMXBean;") \
 641   template(addThreadDumpForMonitors_name,              "addThreadDumpForMonitors")                                \
 642   template(addThreadDumpForSynchronizers_name,         "addThreadDumpForSynchronizers")                           \
 643   template(addThreadDumpForMonitors_signature,         "(Ljava/lang/management/ThreadInfo;[Ljava/lang/Object;[I)V") \
 644   template(addThreadDumpForSynchronizers_signature,    "(Ljava/lang/management/ThreadInfo;[Ljava/lang/Object;)V")   \
 645                                                                                                                   \
 646   /* JVMTI/java.lang.instrument support and VM Attach mechanism */                                                \
 647   template(jdk_internal_module_Modules,                "jdk/internal/module/Modules")                             \
 648   template(jdk_internal_vm_VMSupport,                  "jdk/internal/vm/VMSupport")                               \
 649   template(addReads_name,                              "addReads")                                                \
 650   template(addReads_signature,                         "(Ljava/lang/Module;Ljava/lang/Module;)V")                 \
 651   template(addExports_name,                            "addExports")                                              \
 652   template(addOpens_name,                              "addOpens")                                                \
 653   template(addExports_signature,                       "(Ljava/lang/Module;Ljava/lang/String;Ljava/lang/Module;)V") \
 654   template(addUses_name,                               "addUses")                                                 \
 655   template(addUses_signature,                          "(Ljava/lang/Module;Ljava/lang/Class;)V")                  \
 656   template(addProvides_name,                           "addProvides")                                             \
 657   template(addProvides_signature,                      "(Ljava/lang/Module;Ljava/lang/Class;Ljava/lang/Class;)V") \
 658   template(loadModule_name,                            "loadModule")                                              \
 659   template(loadModule_signature,                       "(Ljava/lang/String;)Ljava/lang/Module;")                  \
 660   template(transformedByAgent_name,                    "transformedByAgent")                                      \
 661   template(transformedByAgent_signature,               "(Ljava/lang/Module;)V")                                   \
 662   template(appendToClassPathForInstrumentation_name,   "appendToClassPathForInstrumentation")                     \
 663   do_alias(appendToClassPathForInstrumentation_signature, string_void_signature)                                  \
 664   template(serializePropertiesToByteArray_name,        "serializePropertiesToByteArray")                          \
 665   template(serializePropertiesToByteArray_signature,   "()[B")                                                    \
 666   template(serializeAgentPropertiesToByteArray_name,   "serializeAgentPropertiesToByteArray")                     \
 667   template(classRedefinedCount_name,                   "classRedefinedCount")                                     \
 668   template(classLoader_name,                           "classLoader")                                             \
 669   template(componentType_name,                         "componentType")                                           \
 670                                                                                                                   \
 671   /* forEachRemaining support */                                                                                  \
 672   template(java_util_stream_StreamsRangeIntSpliterator,          "java/util/stream/Streams$RangeIntSpliterator")  \
 673                                                                                                                   \
 674   /* jfr signatures */                                                                                            \
 675   JFR_TEMPLATES(template)                                                                                         \
 676                                                                                                                   \
 677   /* cds */                                                                                                       \
 678   template(jdk_internal_loader_ClassLoaders,       "jdk/internal/loader/ClassLoaders")                            \
 679   template(jdk_vm_cds_SharedClassInfo,             "jdk/vm/cds/SharedClassInfo")                                  \
 680   template(url_void_signature,                     "(Ljava/net/URL;)V")                                           \
 681   template(toFileURL_name,                         "toFileURL")                                                   \
 682   template(toFileURL_signature,                    "(Ljava/lang/String;)Ljava/net/URL;")                          \
 683                                                                                                                   \
 684   /*end*/
 685 
 686 // Here are all the intrinsics known to the runtime and the CI.
 687 // Each intrinsic consists of a public enum name (like _hashCode),
 688 // followed by a specification of its klass, name, and signature:
 689 //    template(<id>,  <klass>,  <name>, <sig>, <FCODE>)
 690 //
 691 // If you add an intrinsic here, you must also define its name
 692 // and signature as members of the VM symbols.  The VM symbols for
 693 // the intrinsic name and signature may be defined above.
 694 //
 695 // Because the VM_SYMBOLS_DO macro makes reference to VM_INTRINSICS_DO,
 696 // you can also define an intrinsic's name and/or signature locally to the
 697 // intrinsic, if this makes sense.  (It often does make sense.)
 698 //
 699 // For example:
 700 //    do_intrinsic(_foo,  java_lang_Object,  foo_name, foo_signature, F_xx)
 701 //     do_name(     foo_name, "foo")
 702 //     do_signature(foo_signature, "()F")
 703 // klass      = vmSymbols::java_lang_Object()
 704 // name       = vmSymbols::foo_name()
 705 // signature  = vmSymbols::foo_signature()
 706 //
 707 // The name and/or signature might be a "well known" symbol
 708 // like "equal" or "()I", in which case there will be no local
 709 // re-definition of the symbol.
 710 //
 711 // The do_class, do_name, and do_signature calls are all used for the
 712 // same purpose:  Define yet another VM symbol.  They could all be merged
 713 // into a common 'do_symbol' call, but it seems useful to record our
 714 // intentions here about kinds of symbols (class vs. name vs. signature).
 715 //
 716 // The F_xx is one of the Flags enum; see below.
 717 //
 718 // for Emacs: (let ((c-backslash-column 120) (c-backslash-max-column 120)) (c-backslash-region (point) (point-max) nil t))
 719 //
 720 //
 721 // There are two types of intrinsic methods: (1) Library intrinsics and (2) bytecode intrinsics.
 722 //
 723 // (1) A library intrinsic method may be replaced with hand-crafted assembly code,
 724 // with hand-crafted compiler IR, or with a combination of the two. The semantics
 725 // of the replacement code may differ from the semantics of the replaced code.
 726 //
 727 // (2) Bytecode intrinsic methods are not replaced by special code, but they are
 728 // treated in some other special way by the compiler. For example, the compiler
 729 // may delay inlining for some String-related intrinsic methods (e.g., some methods
 730 // defined in the StringBuilder and StringBuffer classes, see
 731 // Compile::should_delay_string_inlining() for more details).
 732 //
 733 // Due to the difference between the semantics of an intrinsic method as defined
 734 // in the (Java) source code and the semantics of the method as defined
 735 // by the code in the VM, intrinsic methods must be explicitly marked.
 736 //
 737 // Intrinsic methods are marked by the jdk.internal.HotSpotIntrinsicCandidate
 738 // annotation. If CheckIntrinsics is enabled, the VM performs the following
 739 // checks when a class C is loaded: (1) all intrinsics defined by the VM for
 740 // class C are present in the loaded class file and are marked;
 741 // (2) an intrinsic is defined by the VM for all marked methods of class C;
 742 // (3) check for orphan methods in class C (i.e., methods for which the VM
 743 // declares an intrinsic but that are not declared for the loaded class C.
 744 // Check (3) is available only in debug builds.
 745 //
 746 // If a mismatch is detected for a method, the VM behaves differently depending
 747 // on the type of build. A fastdebug build exits and reports an error on a mismatch.
 748 // A product build will not replace an unmarked library intrinsic method with
 749 // hand-crafted code, that is, unmarked library intrinsics are treated as ordinary
 750 // methods in a product build. The special treatment of a bytecode intrinsic method
 751 // persists even if the method not marked.
 752 //
 753 // When adding an intrinsic for a method, please make sure to appropriately
 754 // annotate the method in the source code. The list below contains all
 755 // library intrinsics followed by bytecode intrinsics. Please also make sure to
 756 // add the declaration of the intrinsic to the approriate section of the list.
 757 #define VM_INTRINSICS_DO(do_intrinsic, do_class, do_name, do_signature, do_alias)                                       \
 758   /* (1) Library intrinsics                                                                        */                   \
 759   do_intrinsic(_hashCode,                 java_lang_Object,       hashCode_name, void_int_signature,             F_R)   \
 760    do_name(     hashCode_name,                                   "hashCode")                                            \
 761   do_intrinsic(_getClass,                 java_lang_Object,       getClass_name, void_class_signature,           F_R)   \
 762    do_name(     getClass_name,                                   "getClass")                                            \
 763   do_intrinsic(_clone,                    java_lang_Object,       clone_name, void_object_signature,             F_R)   \
 764    do_name(     clone_name,                                      "clone")                                               \
 765   do_intrinsic(_notify,                   java_lang_Object,       notify_name, void_method_signature,            F_R)   \
 766    do_name(     notify_name,                                     "notify")                                              \
 767   do_intrinsic(_notifyAll,                java_lang_Object,       notifyAll_name, void_method_signature,         F_R)   \
 768    do_name(     notifyAll_name,                                  "notifyAll")                                           \
 769                                                                                                                         \
 770   /* Math & StrictMath intrinsics are defined in terms of just a few signatures: */                                     \
 771   do_class(java_lang_Math,                "java/lang/Math")                                                             \
 772   do_class(java_lang_StrictMath,          "java/lang/StrictMath")                                                       \
 773   do_signature(double2_double_signature,  "(DD)D")                                                                      \
 774   do_signature(double3_double_signature,  "(DDD)D")                                                                     \
 775   do_signature(float3_float_signature,    "(FFF)F")                                                                     \
 776   do_signature(int2_int_signature,        "(II)I")                                                                      \
 777   do_signature(long2_long_signature,      "(JJ)J")                                                                      \
 778                                                                                                                         \
 779   /* here are the math names, all together: */                                                                          \
 780   do_name(abs_name,"abs")       do_name(sin_name,"sin")         do_name(cos_name,"cos")                                 \
 781   do_name(tan_name,"tan")       do_name(atan2_name,"atan2")     do_name(sqrt_name,"sqrt")                               \
 782   do_name(log_name,"log")       do_name(log10_name,"log10")     do_name(pow_name,"pow")                                 \
 783   do_name(exp_name,"exp")       do_name(min_name,"min")         do_name(max_name,"max")                                 \
 784                                                                                                                         \
 785   do_name(addExact_name,"addExact")                                                                                     \
 786   do_name(decrementExact_name,"decrementExact")                                                                         \
 787   do_name(incrementExact_name,"incrementExact")                                                                         \
 788   do_name(multiplyExact_name,"multiplyExact")                                                                           \
 789   do_name(multiplyHigh_name,"multiplyHigh")                                                                             \
 790   do_name(negateExact_name,"negateExact")                                                                               \
 791   do_name(subtractExact_name,"subtractExact")                                                                           \
 792   do_name(fma_name, "fma")                                                                                              \
 793                                                                                                                         \
 794   do_intrinsic(_dabs,                     java_lang_Math,         abs_name,   double_double_signature,           F_S)   \
 795   do_intrinsic(_dsin,                     java_lang_Math,         sin_name,   double_double_signature,           F_S)   \
 796   do_intrinsic(_dcos,                     java_lang_Math,         cos_name,   double_double_signature,           F_S)   \
 797   do_intrinsic(_dtan,                     java_lang_Math,         tan_name,   double_double_signature,           F_S)   \
 798   do_intrinsic(_datan2,                   java_lang_Math,         atan2_name, double2_double_signature,          F_S)   \
 799   do_intrinsic(_dsqrt,                    java_lang_Math,         sqrt_name,  double_double_signature,           F_S)   \
 800   do_intrinsic(_dlog,                     java_lang_Math,         log_name,   double_double_signature,           F_S)   \
 801   do_intrinsic(_dlog10,                   java_lang_Math,         log10_name, double_double_signature,           F_S)   \
 802   do_intrinsic(_dpow,                     java_lang_Math,         pow_name,   double2_double_signature,          F_S)   \
 803   do_intrinsic(_dexp,                     java_lang_Math,         exp_name,   double_double_signature,           F_S)   \
 804   do_intrinsic(_min,                      java_lang_Math,         min_name,   int2_int_signature,                F_S)   \
 805   do_intrinsic(_max,                      java_lang_Math,         max_name,   int2_int_signature,                F_S)   \
 806   do_intrinsic(_addExactI,                java_lang_Math,         addExact_name, int2_int_signature,             F_S)   \
 807   do_intrinsic(_addExactL,                java_lang_Math,         addExact_name, long2_long_signature,           F_S)   \
 808   do_intrinsic(_decrementExactI,          java_lang_Math,         decrementExact_name, int_int_signature,        F_S)   \
 809   do_intrinsic(_decrementExactL,          java_lang_Math,         decrementExact_name, long_long_signature,      F_S)   \
 810   do_intrinsic(_incrementExactI,          java_lang_Math,         incrementExact_name, int_int_signature,        F_S)   \
 811   do_intrinsic(_incrementExactL,          java_lang_Math,         incrementExact_name, long_long_signature,      F_S)   \
 812   do_intrinsic(_multiplyExactI,           java_lang_Math,         multiplyExact_name, int2_int_signature,        F_S)   \
 813   do_intrinsic(_multiplyExactL,           java_lang_Math,         multiplyExact_name, long2_long_signature,      F_S)   \
 814   do_intrinsic(_multiplyHigh,             java_lang_Math,         multiplyHigh_name, long2_long_signature,       F_S)   \
 815   do_intrinsic(_negateExactI,             java_lang_Math,         negateExact_name, int_int_signature,           F_S)   \
 816   do_intrinsic(_negateExactL,             java_lang_Math,         negateExact_name, long_long_signature,         F_S)   \
 817   do_intrinsic(_subtractExactI,           java_lang_Math,         subtractExact_name, int2_int_signature,        F_S)   \
 818   do_intrinsic(_subtractExactL,           java_lang_Math,         subtractExact_name, long2_long_signature,      F_S)   \
 819   do_intrinsic(_fmaD,                     java_lang_Math,         fma_name,           double3_double_signature,  F_S)   \
 820   do_intrinsic(_fmaF,                     java_lang_Math,         fma_name,           float3_float_signature,    F_S)   \
 821                                                                                                                         \
 822   do_intrinsic(_floatToRawIntBits,        java_lang_Float,        floatToRawIntBits_name,   float_int_signature, F_S)   \
 823    do_name(     floatToRawIntBits_name,                          "floatToRawIntBits")                                   \
 824   do_intrinsic(_floatToIntBits,           java_lang_Float,        floatToIntBits_name,      float_int_signature, F_S)   \
 825    do_name(     floatToIntBits_name,                             "floatToIntBits")                                      \
 826   do_intrinsic(_intBitsToFloat,           java_lang_Float,        intBitsToFloat_name,      int_float_signature, F_S)   \
 827    do_name(     intBitsToFloat_name,                             "intBitsToFloat")                                      \
 828   do_intrinsic(_doubleToRawLongBits,      java_lang_Double,       doubleToRawLongBits_name, double_long_signature, F_S) \
 829    do_name(     doubleToRawLongBits_name,                        "doubleToRawLongBits")                                 \
 830   do_intrinsic(_doubleToLongBits,         java_lang_Double,       doubleToLongBits_name,    double_long_signature, F_S) \
 831    do_name(     doubleToLongBits_name,                           "doubleToLongBits")                                    \
 832   do_intrinsic(_longBitsToDouble,         java_lang_Double,       longBitsToDouble_name,    long_double_signature, F_S) \
 833    do_name(     longBitsToDouble_name,                           "longBitsToDouble")                                    \
 834                                                                                                                         \
 835   do_intrinsic(_numberOfLeadingZeros_i,   java_lang_Integer,      numberOfLeadingZeros_name,int_int_signature,   F_S)   \
 836   do_intrinsic(_numberOfLeadingZeros_l,   java_lang_Long,         numberOfLeadingZeros_name,long_int_signature,  F_S)   \
 837                                                                                                                         \
 838   do_intrinsic(_numberOfTrailingZeros_i,  java_lang_Integer,      numberOfTrailingZeros_name,int_int_signature,  F_S)   \
 839   do_intrinsic(_numberOfTrailingZeros_l,  java_lang_Long,         numberOfTrailingZeros_name,long_int_signature, F_S)   \
 840                                                                                                                         \
 841   do_intrinsic(_bitCount_i,               java_lang_Integer,      bitCount_name,            int_int_signature,   F_S)   \
 842   do_intrinsic(_bitCount_l,               java_lang_Long,         bitCount_name,            long_int_signature,  F_S)   \
 843                                                                                                                         \
 844   do_intrinsic(_reverseBytes_i,           java_lang_Integer,      reverseBytes_name,        int_int_signature,   F_S)   \
 845    do_name(     reverseBytes_name,                               "reverseBytes")                                        \
 846   do_intrinsic(_reverseBytes_l,           java_lang_Long,         reverseBytes_name,        long_long_signature, F_S)   \
 847     /*  (symbol reverseBytes_name defined above) */                                                                     \
 848   do_intrinsic(_reverseBytes_c,           java_lang_Character,    reverseBytes_name,        char_char_signature, F_S)   \
 849     /*  (symbol reverseBytes_name defined above) */                                                                     \
 850   do_intrinsic(_reverseBytes_s,           java_lang_Short,        reverseBytes_name,        short_short_signature, F_S) \
 851     /*  (symbol reverseBytes_name defined above) */                                                                     \
 852                                                                                                                         \
 853   do_intrinsic(_identityHashCode,         java_lang_System,       identityHashCode_name, object_int_signature,   F_S)   \
 854    do_name(     identityHashCode_name,                           "identityHashCode")                                    \
 855   do_intrinsic(_currentTimeMillis,        java_lang_System,       currentTimeMillis_name, void_long_signature,   F_S)   \
 856                                                                                                                         \
 857    do_name(     currentTimeMillis_name,                          "currentTimeMillis")                                   \
 858   do_intrinsic(_nanoTime,                 java_lang_System,       nanoTime_name,          void_long_signature,   F_S)   \
 859    do_name(     nanoTime_name,                                   "nanoTime")                                            \
 860                                                                                                                         \
 861   JFR_INTRINSICS(do_intrinsic, do_class, do_name, do_signature, do_alias)                                               \
 862                                                                                                                         \
 863   do_intrinsic(_arraycopy,                java_lang_System,       arraycopy_name, arraycopy_signature,           F_S)   \
 864    do_name(     arraycopy_name,                                  "arraycopy")                                           \
 865    do_signature(arraycopy_signature,                             "(Ljava/lang/Object;ILjava/lang/Object;II)V")          \
 866   do_intrinsic(_isInterrupted,            java_lang_Thread,       isInterrupted_name, isInterrupted_signature,   F_R)   \
 867    do_name(     isInterrupted_name,                              "isInterrupted")                                       \
 868    do_signature(isInterrupted_signature,                         "(Z)Z")                                                \
 869   do_intrinsic(_currentThread,            java_lang_Thread,       currentThread_name, currentThread_signature,   F_S)   \
 870    do_name(     currentThread_name,                              "currentThread0")                                      \
 871    do_signature(currentThread_signature,                         "()Ljava/lang/Thread;")                                \
 872                                                                                                                         \
 873   /* reflective intrinsics, for java/lang/Class, etc. */                                                                \
 874   do_intrinsic(_isAssignableFrom,         java_lang_Class,        isAssignableFrom_name, class_boolean_signature, F_RN) \
 875    do_name(     isAssignableFrom_name,                           "isAssignableFrom")                                    \
 876   do_intrinsic(_isInstance,               java_lang_Class,        isInstance_name, object_boolean_signature,     F_RN)  \
 877    do_name(     isInstance_name,                                 "isInstance")                                          \
 878   do_intrinsic(_getModifiers,             java_lang_Class,        getModifiers_name, void_int_signature,         F_RN)  \
 879    do_name(     getModifiers_name,                               "getModifiers")                                        \
 880   do_intrinsic(_isInterface,              java_lang_Class,        isInterface_name, void_boolean_signature,      F_RN)  \
 881    do_name(     isInterface_name,                                "isInterface")                                         \
 882   do_intrinsic(_isArray,                  java_lang_Class,        isArray_name, void_boolean_signature,          F_RN)  \
 883    do_name(     isArray_name,                                    "isArray")                                             \
 884   do_intrinsic(_isPrimitive,              java_lang_Class,        isPrimitive_name, void_boolean_signature,      F_RN)  \
 885    do_name(     isPrimitive_name,                                "isPrimitive")                                         \
 886   do_intrinsic(_getSuperclass,            java_lang_Class,        getSuperclass_name, void_class_signature,      F_RN)  \
 887    do_name(     getSuperclass_name,                              "getSuperclass")                                       \
 888   do_intrinsic(_Class_cast,               java_lang_Class,        Class_cast_name, object_object_signature,      F_R)   \
 889    do_name(     Class_cast_name,                                 "cast")                                                \
 890                                                                                                                         \
 891   do_intrinsic(_getClassAccessFlags,      reflect_Reflection,     getClassAccessFlags_name, class_int_signature, F_SN)  \
 892    do_name(     getClassAccessFlags_name,                        "getClassAccessFlags")                                 \
 893   do_intrinsic(_getLength,                java_lang_reflect_Array, getLength_name, object_int_signature,         F_SN)  \
 894    do_name(     getLength_name,                                   "getLength")                                          \
 895                                                                                                                         \
 896   do_intrinsic(_getCallerClass,           reflect_Reflection,     getCallerClass_name, void_class_signature,     F_SN)  \
 897    do_name(     getCallerClass_name,                             "getCallerClass")                                      \
 898                                                                                                                         \
 899   do_intrinsic(_newArray,                 java_lang_reflect_Array, newArray_name, newArray_signature,            F_SN)  \
 900    do_name(     newArray_name,                                    "newArray")                                           \
 901    do_signature(newArray_signature,                               "(Ljava/lang/Class;I)Ljava/lang/Object;")             \
 902                                                                                                                         \
 903   do_intrinsic(_onSpinWait,               java_lang_Thread,       onSpinWait_name, onSpinWait_signature,         F_S)   \
 904    do_name(     onSpinWait_name,                                  "onSpinWait")                                         \
 905    do_alias(    onSpinWait_signature,                             void_method_signature)                                \
 906                                                                                                                         \
 907   do_intrinsic(_copyOf,                   java_util_Arrays,       copyOf_name, copyOf_signature,                 F_S)   \
 908    do_name(     copyOf_name,                                     "copyOf")                                              \
 909    do_signature(copyOf_signature,             "([Ljava/lang/Object;ILjava/lang/Class;)[Ljava/lang/Object;")             \
 910                                                                                                                         \
 911   do_intrinsic(_copyOfRange,              java_util_Arrays,       copyOfRange_name, copyOfRange_signature,       F_S)   \
 912    do_name(     copyOfRange_name,                                "copyOfRange")                                         \
 913    do_signature(copyOfRange_signature,        "([Ljava/lang/Object;IILjava/lang/Class;)[Ljava/lang/Object;")            \
 914                                                                                                                         \
 915   do_intrinsic(_equalsC,                  java_util_Arrays,       equals_name,    equalsC_signature,             F_S)   \
 916    do_signature(equalsC_signature,                               "([C[C)Z")                                             \
 917   do_intrinsic(_equalsB,                  java_util_Arrays,       equals_name,    equalsB_signature,             F_S)   \
 918    do_signature(equalsB_signature,                               "([B[B)Z")                                             \
 919                                                                                                                         \
 920   do_intrinsic(_compressStringC,          java_lang_StringUTF16,  compress_name, encodeISOArray_signature,       F_S)   \
 921    do_name(     compress_name,                                   "compress")                                            \
 922   do_intrinsic(_compressStringB,          java_lang_StringUTF16,  compress_name, indexOfI_signature,             F_S)   \
 923   do_intrinsic(_inflateStringC,           java_lang_StringLatin1, inflate_name, inflateC_signature,              F_S)   \
 924    do_name(     inflate_name,                                    "inflate")                                             \
 925    do_signature(inflateC_signature,                              "([BI[CII)V")                                          \
 926   do_intrinsic(_inflateStringB,           java_lang_StringLatin1, inflate_name, inflateB_signature,              F_S)   \
 927    do_signature(inflateB_signature,                              "([BI[BII)V")                                          \
 928   do_intrinsic(_toBytesStringU,           java_lang_StringUTF16, toBytes_name, toBytesU_signature,               F_S)   \
 929    do_name(     toBytes_name,                                    "toBytes")                                             \
 930    do_signature(toBytesU_signature,                              "([CII)[B")                                            \
 931   do_intrinsic(_getCharsStringU,          java_lang_StringUTF16, getCharsU_name, getCharsU_signature,            F_S)   \
 932    do_name(     getCharsU_name,                                  "getChars")                                            \
 933    do_signature(getCharsU_signature,                             "([BII[CI)V")                                          \
 934   do_intrinsic(_getCharStringU,           java_lang_StringUTF16, getChar_name, getCharStringU_signature,         F_S)   \
 935    do_signature(getCharStringU_signature,                        "([BI)C")                                              \
 936   do_intrinsic(_putCharStringU,           java_lang_StringUTF16, putChar_name, putCharStringU_signature,         F_S)   \
 937    do_signature(putCharStringU_signature,                        "([BII)V")                                             \
 938   do_intrinsic(_compareToL,               java_lang_StringLatin1,compareTo_name, compareTo_indexOf_signature,    F_S)   \
 939   do_intrinsic(_compareToU,               java_lang_StringUTF16, compareTo_name, compareTo_indexOf_signature,    F_S)   \
 940   do_intrinsic(_compareToLU,              java_lang_StringLatin1,compareToLU_name, compareTo_indexOf_signature,  F_S)   \
 941   do_intrinsic(_compareToUL,              java_lang_StringUTF16, compareToUL_name, compareTo_indexOf_signature,  F_S)   \
 942    do_signature(compareTo_indexOf_signature,                     "([B[B)I")                                             \
 943    do_name(     compareTo_name,                                  "compareTo")                                           \
 944    do_name(     compareToLU_name,                                "compareToUTF16")                                      \
 945    do_name(     compareToUL_name,                                "compareToLatin1")                                     \
 946   do_intrinsic(_indexOfL,                 java_lang_StringLatin1,indexOf_name, compareTo_indexOf_signature,      F_S)   \
 947   do_intrinsic(_indexOfU,                 java_lang_StringUTF16, indexOf_name, compareTo_indexOf_signature,      F_S)   \
 948   do_intrinsic(_indexOfUL,                java_lang_StringUTF16, indexOfUL_name, compareTo_indexOf_signature,    F_S)   \
 949   do_intrinsic(_indexOfIL,                java_lang_StringLatin1,indexOf_name, indexOfI_signature,               F_S)   \
 950   do_intrinsic(_indexOfIU,                java_lang_StringUTF16, indexOf_name, indexOfI_signature,               F_S)   \
 951   do_intrinsic(_indexOfIUL,               java_lang_StringUTF16, indexOfUL_name, indexOfI_signature,             F_S)   \
 952   do_intrinsic(_indexOfU_char,            java_lang_StringUTF16, indexOfChar_name, indexOfChar_signature,        F_S)   \
 953    do_name(     indexOf_name,                                    "indexOf")                                             \
 954    do_name(     indexOfChar_name,                                "indexOfChar")                                         \
 955    do_name(     indexOfUL_name,                                  "indexOfLatin1")                                       \
 956    do_signature(indexOfI_signature,                              "([BI[BII)I")                                          \
 957    do_signature(indexOfChar_signature,                           "([BIII)I")                                            \
 958   do_intrinsic(_equalsL,                  java_lang_StringLatin1,equals_name, equalsB_signature,                 F_S)   \
 959   do_intrinsic(_equalsU,                  java_lang_StringUTF16, equals_name, equalsB_signature,                 F_S)   \
 960                                                                                                                         \
 961   do_intrinsic(_Preconditions_checkIndex, jdk_internal_util_Preconditions, checkIndex_name, Preconditions_checkIndex_signature, F_S)   \
 962    do_signature(Preconditions_checkIndex_signature,              "(IILjava/util/function/BiFunction;)I")                \
 963                                                                                                                         \
 964   do_class(java_nio_Buffer,               "java/nio/Buffer")                                                            \
 965   do_intrinsic(_checkIndex,               java_nio_Buffer,        checkIndex_name, int_int_signature,            F_R)   \
 966    do_name(     checkIndex_name,                                 "checkIndex")                                          \
 967                                                                                                                         \
 968   do_class(java_lang_StringCoding,        "java/lang/StringCoding")                                                     \
 969   do_intrinsic(_hasNegatives,             java_lang_StringCoding, hasNegatives_name, hasNegatives_signature,     F_S)   \
 970    do_name(     hasNegatives_name,                               "hasNegatives")                                        \
 971    do_signature(hasNegatives_signature,                          "([BII)Z")                                             \
 972                                                                                                                         \
 973   do_class(sun_nio_cs_iso8859_1_Encoder,  "sun/nio/cs/ISO_8859_1$Encoder")                                              \
 974   do_intrinsic(_encodeISOArray,     sun_nio_cs_iso8859_1_Encoder, encodeISOArray_name, encodeISOArray_signature, F_S)   \
 975    do_name(     encodeISOArray_name,                             "implEncodeISOArray")                                  \
 976    do_signature(encodeISOArray_signature,                        "([CI[BII)I")                                          \
 977                                                                                                                         \
 978   do_intrinsic(_encodeByteISOArray,     java_lang_StringCoding, encodeISOArray_name, indexOfI_signature,         F_S)   \
 979                                                                                                                         \
 980   do_class(java_math_BigInteger,                      "java/math/BigInteger")                                           \
 981   do_intrinsic(_multiplyToLen,      java_math_BigInteger, multiplyToLen_name, multiplyToLen_signature, F_S)             \
 982    do_name(     multiplyToLen_name,                             "implMultiplyToLen")                                    \
 983    do_signature(multiplyToLen_signature,                        "([II[II[I)[I")                                         \
 984                                                                                                                         \
 985   do_intrinsic(_squareToLen, java_math_BigInteger, squareToLen_name, squareToLen_signature, F_S)                        \
 986    do_name(     squareToLen_name,                             "implSquareToLen")                                        \
 987    do_signature(squareToLen_signature,                        "([II[II)[I")                                             \
 988                                                                                                                         \
 989   do_intrinsic(_mulAdd, java_math_BigInteger, mulAdd_name, mulAdd_signature, F_S)                                       \
 990    do_name(     mulAdd_name,                                  "implMulAdd")                                             \
 991    do_signature(mulAdd_signature,                             "([I[IIII)I")                                             \
 992                                                                                                                         \
 993   do_intrinsic(_montgomeryMultiply,      java_math_BigInteger, montgomeryMultiply_name, montgomeryMultiply_signature, F_S) \
 994    do_name(     montgomeryMultiply_name,                             "implMontgomeryMultiply")                          \
 995    do_signature(montgomeryMultiply_signature,                        "([I[I[IIJ[I)[I")                                  \
 996                                                                                                                         \
 997   do_intrinsic(_montgomerySquare,      java_math_BigInteger, montgomerySquare_name, montgomerySquare_signature, F_S)    \
 998    do_name(     montgomerySquare_name,                             "implMontgomerySquare")                              \
 999    do_signature(montgomerySquare_signature,                        "([I[IIJ[I)[I")                                      \
1000                                                                                                                         \
1001   do_class(jdk_internal_util_ArraysSupport, "jdk/internal/util/ArraysSupport")                                                          \
1002   do_intrinsic(_vectorizedMismatch, jdk_internal_util_ArraysSupport, vectorizedMismatch_name, vectorizedMismatch_signature, F_S)\
1003    do_name(vectorizedMismatch_name, "vectorizedMismatch")                                                               \
1004    do_signature(vectorizedMismatch_signature, "(Ljava/lang/Object;JLjava/lang/Object;JII)I")                            \
1005                                                                                                                         \
1006   /* java/lang/ref/Reference */                                                                                         \
1007   do_intrinsic(_Reference_get,            java_lang_ref_Reference, get_name,    void_object_signature, F_R)             \
1008                                                                                                                         \
1009   /* support for com.sun.crypto.provider.AESCrypt and some of its callers */                                            \
1010   do_class(com_sun_crypto_provider_aescrypt,      "com/sun/crypto/provider/AESCrypt")                                   \
1011   do_intrinsic(_aescrypt_encryptBlock, com_sun_crypto_provider_aescrypt, encryptBlock_name, byteArray_int_byteArray_int_signature, F_R)   \
1012   do_intrinsic(_aescrypt_decryptBlock, com_sun_crypto_provider_aescrypt, decryptBlock_name, byteArray_int_byteArray_int_signature, F_R)   \
1013    do_name(     encryptBlock_name,                                 "implEncryptBlock")                                  \
1014    do_name(     decryptBlock_name,                                 "implDecryptBlock")                                  \
1015    do_signature(byteArray_int_byteArray_int_signature,             "([BI[BI)V")                                         \
1016                                                                                                                         \
1017   do_class(com_sun_crypto_provider_cipherBlockChaining,            "com/sun/crypto/provider/CipherBlockChaining")       \
1018    do_intrinsic(_cipherBlockChaining_encryptAESCrypt, com_sun_crypto_provider_cipherBlockChaining, encrypt_name, byteArray_int_int_byteArray_int_signature, F_R)   \
1019    do_intrinsic(_cipherBlockChaining_decryptAESCrypt, com_sun_crypto_provider_cipherBlockChaining, decrypt_name, byteArray_int_int_byteArray_int_signature, F_R)   \
1020    do_name(     encrypt_name,                                      "implEncrypt")                                       \
1021    do_name(     decrypt_name,                                      "implDecrypt")                                       \
1022    do_signature(byteArray_int_int_byteArray_int_signature,         "([BII[BI)I")                                        \
1023                                                                                                                         \
1024   do_class(com_sun_crypto_provider_counterMode,      "com/sun/crypto/provider/CounterMode")                             \
1025    do_intrinsic(_counterMode_AESCrypt, com_sun_crypto_provider_counterMode, crypt_name, byteArray_int_int_byteArray_int_signature, F_R)   \
1026    do_name(     crypt_name,                                 "implCrypt")                                                    \
1027                                                                                                                         \
1028   /* support for sun.security.provider.SHA */                                                                           \
1029   do_class(sun_security_provider_sha,                              "sun/security/provider/SHA")                         \
1030   do_intrinsic(_sha_implCompress, sun_security_provider_sha, implCompress_name, implCompress_signature, F_R)            \
1031    do_name(     implCompress_name,                                 "implCompress0")                                     \
1032    do_signature(implCompress_signature,                            "([BI)V")                                            \
1033                                                                                                                         \
1034   /* support for sun.security.provider.SHA2 */                                                                          \
1035   do_class(sun_security_provider_sha2,                             "sun/security/provider/SHA2")                        \
1036   do_intrinsic(_sha2_implCompress, sun_security_provider_sha2, implCompress_name, implCompress_signature, F_R)          \
1037                                                                                                                         \
1038   /* support for sun.security.provider.SHA5 */                                                                          \
1039   do_class(sun_security_provider_sha5,                             "sun/security/provider/SHA5")                        \
1040   do_intrinsic(_sha5_implCompress, sun_security_provider_sha5, implCompress_name, implCompress_signature, F_R)          \
1041                                                                                                                         \
1042   /* support for sun.security.provider.DigestBase */                                                                    \
1043   do_class(sun_security_provider_digestbase,                       "sun/security/provider/DigestBase")                  \
1044   do_intrinsic(_digestBase_implCompressMB, sun_security_provider_digestbase, implCompressMB_name, implCompressMB_signature, F_R)   \
1045    do_name(     implCompressMB_name,                               "implCompressMultiBlock0")                           \
1046    do_signature(implCompressMB_signature,                          "([BII)I")                                           \
1047                                                                                                                         \
1048   /* support for com.sun.crypto.provider.GHASH */                                                                       \
1049   do_class(com_sun_crypto_provider_ghash, "com/sun/crypto/provider/GHASH")                                              \
1050   do_intrinsic(_ghash_processBlocks, com_sun_crypto_provider_ghash, processBlocks_name, ghash_processBlocks_signature, F_S) \
1051    do_name(processBlocks_name, "processBlocks")                                                                         \
1052    do_signature(ghash_processBlocks_signature, "([BII[J[J)V")                                                           \
1053                                                                                                                         \
1054   /* support for java.util.zip */                                                                                       \
1055   do_class(java_util_zip_CRC32,           "java/util/zip/CRC32")                                                        \
1056   do_intrinsic(_updateCRC32,               java_util_zip_CRC32,   update_name, int2_int_signature,               F_SN)  \
1057    do_name(     update_name,                                      "update")                                             \
1058   do_intrinsic(_updateBytesCRC32,          java_util_zip_CRC32,   updateBytes_name, updateBytes_signature,       F_SN)  \
1059    do_name(     updateBytes_name,                                "updateBytes0")                                        \
1060    do_signature(updateBytes_signature,                           "(I[BII)I")                                            \
1061   do_intrinsic(_updateByteBufferCRC32,     java_util_zip_CRC32,   updateByteBuffer_name, updateByteBuffer_signature, F_SN) \
1062    do_name(     updateByteBuffer_name,                           "updateByteBuffer0")                                   \
1063    do_signature(updateByteBuffer_signature,                      "(IJII)I")                                             \
1064                                                                                                                         \
1065   /* support for java.util.zip.CRC32C */                                                                                \
1066   do_class(java_util_zip_CRC32C,          "java/util/zip/CRC32C")                                                       \
1067   do_intrinsic(_updateBytesCRC32C,         java_util_zip_CRC32C,  updateBytes_C_name, updateBytes_signature,       F_S) \
1068    do_name(     updateBytes_C_name,                               "updateBytes")                                        \
1069   do_intrinsic(_updateDirectByteBufferCRC32C, java_util_zip_CRC32C, updateDirectByteBuffer_C_name, updateByteBuffer_signature, F_S) \
1070    do_name(    updateDirectByteBuffer_C_name,                     "updateDirectByteBuffer")                             \
1071                                                                                                                         \
1072    /* support for java.util.zip.Adler32 */                                                                              \
1073   do_class(java_util_zip_Adler32,        "java/util/zip/Adler32")                                                       \
1074   do_intrinsic(_updateBytesAdler32,       java_util_zip_Adler32,  updateBytes_C_name,  updateBytes_signature,  F_SN)    \
1075   do_intrinsic(_updateByteBufferAdler32,  java_util_zip_Adler32,  updateByteBuffer_A_name,  updateByteBuffer_signature,  F_SN) \
1076    do_name(     updateByteBuffer_A_name,                          "updateByteBuffer")                                   \
1077                                                                                                                         \
1078   /* java/lang/Continuation */                                                                                                 \
1079   do_class(java_lang_Continuation,                      "java/lang/Continuation")                                              \
1080   do_alias(continuationEnter_signature,                           void_method_signature)                                       \
1081   do_signature(continuationGetStacks_signature,                   "(III)V")                                                    \
1082   do_alias(continuationOnPinned_signature,                        int_void_signature)                                          \
1083   do_intrinsic(_Continuation_getSP,  java_lang_Continuation,       getSP_name,    continuationGetSP_signature, F_S)            \
1084     do_alias(continuationGetSP_signature,                            void_long_signature)                                      \
1085   do_intrinsic(_Continuation_getFP,  java_lang_Continuation,       getFP_name,    continuationGetFP_signature, F_S)            \
1086     do_alias(continuationGetFP_signature,                            void_long_signature)                                      \
1087   do_intrinsic(_Continuation_getPC,  java_lang_Continuation,       getPC_name,    continuationGetPC_signature, F_S)            \
1088     do_alias(continuationGetPC_signature,                            void_long_signature)                                      \
1089   do_intrinsic(_Continuation_doContinue,  java_lang_Continuation,  doContinue_name,    continuationDoContinue_signature, F_R)  \
1090     do_alias(continuationDoContinue_signature,                     void_method_signature)                                      \
1091   do_intrinsic(_Continuation_doYield,     java_lang_Continuation,  doYield_name,       continuationDoYield_signature, F_S)     \
1092     do_alias(continuationDoYield_signature,                          int_void_signature)                                       \
1093   do_intrinsic(_Continuation_runLevel,    java_lang_Continuation,  runLevel_name,    continuationrunLevel_signature, F_S)      \
1094     do_alias(continuationrunLevel_signature,                         void_int_signature)                                       \
1095                                                                                                                         \
1096 /* support for Unsafe */                                                                                                \
1097   do_class(jdk_internal_misc_Unsafe,               "jdk/internal/misc/Unsafe")                                          \
1098                                                                                                                         \
1099   do_intrinsic(_allocateInstance,         jdk_internal_misc_Unsafe,     allocateInstance_name, allocateInstance_signature, F_RN) \
1100    do_name(     allocateInstance_name,                                  "allocateInstance")                                      \
1101    do_signature(allocateInstance_signature,                             "(Ljava/lang/Class;)Ljava/lang/Object;")                 \
1102   do_intrinsic(_allocateUninitializedArray, jdk_internal_misc_Unsafe,   allocateUninitializedArray_name, newArray_signature,  F_R) \
1103    do_name(     allocateUninitializedArray_name,                        "allocateUninitializedArray0")                           \
1104   do_intrinsic(_copyMemory,               jdk_internal_misc_Unsafe,     copyMemory_name, copyMemory_signature,         F_RN)     \
1105    do_name(     copyMemory_name,                                        "copyMemory0")                                           \
1106    do_signature(copyMemory_signature,                                   "(Ljava/lang/Object;JLjava/lang/Object;JJ)V")            \
1107   do_intrinsic(_loadFence,                jdk_internal_misc_Unsafe,     loadFence_name, loadFence_signature,           F_RN)     \
1108    do_name(     loadFence_name,                                         "loadFence")                                             \
1109    do_alias(    loadFence_signature,                                    void_method_signature)                                   \
1110   do_intrinsic(_storeFence,               jdk_internal_misc_Unsafe,     storeFence_name, storeFence_signature,         F_RN)     \
1111    do_name(     storeFence_name,                                        "storeFence")                                            \
1112    do_alias(    storeFence_signature,                                   void_method_signature)                                   \
1113   do_intrinsic(_fullFence,                jdk_internal_misc_Unsafe,     fullFence_name, fullFence_signature,           F_RN)     \
1114    do_name(     fullFence_name,                                         "fullFence")                                             \
1115    do_alias(    fullFence_signature,                                    void_method_signature)                                   \
1116                                                                                                                         \
1117   /* Custom branch frequencies profiling support for JSR292 */                                                          \
1118   do_class(java_lang_invoke_MethodHandleImpl,               "java/lang/invoke/MethodHandleImpl")                        \
1119   do_intrinsic(_profileBoolean, java_lang_invoke_MethodHandleImpl, profileBoolean_name, profileBoolean_signature, F_S)  \
1120    do_name(     profileBoolean_name,                             "profileBoolean")                                      \
1121    do_signature(profileBoolean_signature,                        "(Z[I)Z")                                              \
1122   do_intrinsic(_isCompileConstant, java_lang_invoke_MethodHandleImpl, isCompileConstant_name, isCompileConstant_signature, F_S) \
1123    do_name(     isCompileConstant_name,                          "isCompileConstant")                                   \
1124    do_alias(    isCompileConstant_signature,                      object_boolean_signature)                             \
1125                                                                                                                         \
1126   /* unsafe memory references (there are a lot of them...) */                                                           \
1127   do_signature(getObject_signature,       "(Ljava/lang/Object;J)Ljava/lang/Object;")                                    \
1128   do_signature(putObject_signature,       "(Ljava/lang/Object;JLjava/lang/Object;)V")                                   \
1129   do_signature(getBoolean_signature,      "(Ljava/lang/Object;J)Z")                                                     \
1130   do_signature(putBoolean_signature,      "(Ljava/lang/Object;JZ)V")                                                    \
1131   do_signature(getByte_signature,         "(Ljava/lang/Object;J)B")                                                     \
1132   do_signature(putByte_signature,         "(Ljava/lang/Object;JB)V")                                                    \
1133   do_signature(getShort_signature,        "(Ljava/lang/Object;J)S")                                                     \
1134   do_signature(putShort_signature,        "(Ljava/lang/Object;JS)V")                                                    \
1135   do_signature(getChar_signature,         "(Ljava/lang/Object;J)C")                                                     \
1136   do_signature(putChar_signature,         "(Ljava/lang/Object;JC)V")                                                    \
1137   do_signature(getInt_signature,          "(Ljava/lang/Object;J)I")                                                     \
1138   do_signature(putInt_signature,          "(Ljava/lang/Object;JI)V")                                                    \
1139   do_signature(getLong_signature,         "(Ljava/lang/Object;J)J")                                                     \
1140   do_signature(putLong_signature,         "(Ljava/lang/Object;JJ)V")                                                    \
1141   do_signature(getFloat_signature,        "(Ljava/lang/Object;J)F")                                                     \
1142   do_signature(putFloat_signature,        "(Ljava/lang/Object;JF)V")                                                    \
1143   do_signature(getDouble_signature,       "(Ljava/lang/Object;J)D")                                                     \
1144   do_signature(putDouble_signature,       "(Ljava/lang/Object;JD)V")                                                    \
1145                                                                                                                         \
1146   do_name(getObject_name,"getObject")           do_name(putObject_name,"putObject")                                     \
1147   do_name(getBoolean_name,"getBoolean")         do_name(putBoolean_name,"putBoolean")                                   \
1148   do_name(getByte_name,"getByte")               do_name(putByte_name,"putByte")                                         \
1149   do_name(getShort_name,"getShort")             do_name(putShort_name,"putShort")                                       \
1150   do_name(getChar_name,"getChar")               do_name(putChar_name,"putChar")                                         \
1151   do_name(getInt_name,"getInt")                 do_name(putInt_name,"putInt")                                           \
1152   do_name(getLong_name,"getLong")               do_name(putLong_name,"putLong")                                         \
1153   do_name(getFloat_name,"getFloat")             do_name(putFloat_name,"putFloat")                                       \
1154   do_name(getDouble_name,"getDouble")           do_name(putDouble_name,"putDouble")                                     \
1155                                                                                                                         \
1156   do_intrinsic(_getObject,          jdk_internal_misc_Unsafe,     getObject_name, getObject_signature,           F_RN)  \
1157   do_intrinsic(_getBoolean,         jdk_internal_misc_Unsafe,     getBoolean_name, getBoolean_signature,         F_RN)  \
1158   do_intrinsic(_getByte,            jdk_internal_misc_Unsafe,     getByte_name, getByte_signature,               F_RN)  \
1159   do_intrinsic(_getShort,           jdk_internal_misc_Unsafe,     getShort_name, getShort_signature,             F_RN)  \
1160   do_intrinsic(_getChar,            jdk_internal_misc_Unsafe,     getChar_name, getChar_signature,               F_RN)  \
1161   do_intrinsic(_getInt,             jdk_internal_misc_Unsafe,     getInt_name, getInt_signature,                 F_RN)  \
1162   do_intrinsic(_getLong,            jdk_internal_misc_Unsafe,     getLong_name, getLong_signature,               F_RN)  \
1163   do_intrinsic(_getFloat,           jdk_internal_misc_Unsafe,     getFloat_name, getFloat_signature,             F_RN)  \
1164   do_intrinsic(_getDouble,          jdk_internal_misc_Unsafe,     getDouble_name, getDouble_signature,           F_RN)  \
1165   do_intrinsic(_putObject,          jdk_internal_misc_Unsafe,     putObject_name, putObject_signature,           F_RN)  \
1166   do_intrinsic(_putBoolean,         jdk_internal_misc_Unsafe,     putBoolean_name, putBoolean_signature,         F_RN)  \
1167   do_intrinsic(_putByte,            jdk_internal_misc_Unsafe,     putByte_name, putByte_signature,               F_RN)  \
1168   do_intrinsic(_putShort,           jdk_internal_misc_Unsafe,     putShort_name, putShort_signature,             F_RN)  \
1169   do_intrinsic(_putChar,            jdk_internal_misc_Unsafe,     putChar_name, putChar_signature,               F_RN)  \
1170   do_intrinsic(_putInt,             jdk_internal_misc_Unsafe,     putInt_name, putInt_signature,                 F_RN)  \
1171   do_intrinsic(_putLong,            jdk_internal_misc_Unsafe,     putLong_name, putLong_signature,               F_RN)  \
1172   do_intrinsic(_putFloat,           jdk_internal_misc_Unsafe,     putFloat_name, putFloat_signature,             F_RN)  \
1173   do_intrinsic(_putDouble,          jdk_internal_misc_Unsafe,     putDouble_name, putDouble_signature,           F_RN)  \
1174                                                                                                                         \
1175   do_name(getObjectVolatile_name,"getObjectVolatile")   do_name(putObjectVolatile_name,"putObjectVolatile")             \
1176   do_name(getBooleanVolatile_name,"getBooleanVolatile") do_name(putBooleanVolatile_name,"putBooleanVolatile")           \
1177   do_name(getByteVolatile_name,"getByteVolatile")       do_name(putByteVolatile_name,"putByteVolatile")                 \
1178   do_name(getShortVolatile_name,"getShortVolatile")     do_name(putShortVolatile_name,"putShortVolatile")               \
1179   do_name(getCharVolatile_name,"getCharVolatile")       do_name(putCharVolatile_name,"putCharVolatile")                 \
1180   do_name(getIntVolatile_name,"getIntVolatile")         do_name(putIntVolatile_name,"putIntVolatile")                   \
1181   do_name(getLongVolatile_name,"getLongVolatile")       do_name(putLongVolatile_name,"putLongVolatile")                 \
1182   do_name(getFloatVolatile_name,"getFloatVolatile")     do_name(putFloatVolatile_name,"putFloatVolatile")               \
1183   do_name(getDoubleVolatile_name,"getDoubleVolatile")   do_name(putDoubleVolatile_name,"putDoubleVolatile")             \
1184                                                                                                                         \
1185   do_intrinsic(_getObjectVolatile,        jdk_internal_misc_Unsafe,     getObjectVolatile_name, getObject_signature,   F_RN)  \
1186   do_intrinsic(_getBooleanVolatile,       jdk_internal_misc_Unsafe,     getBooleanVolatile_name, getBoolean_signature, F_RN)  \
1187   do_intrinsic(_getByteVolatile,          jdk_internal_misc_Unsafe,     getByteVolatile_name, getByte_signature,       F_RN)  \
1188   do_intrinsic(_getShortVolatile,         jdk_internal_misc_Unsafe,     getShortVolatile_name, getShort_signature,     F_RN)  \
1189   do_intrinsic(_getCharVolatile,          jdk_internal_misc_Unsafe,     getCharVolatile_name, getChar_signature,       F_RN)  \
1190   do_intrinsic(_getIntVolatile,           jdk_internal_misc_Unsafe,     getIntVolatile_name, getInt_signature,         F_RN)  \
1191   do_intrinsic(_getLongVolatile,          jdk_internal_misc_Unsafe,     getLongVolatile_name, getLong_signature,       F_RN)  \
1192   do_intrinsic(_getFloatVolatile,         jdk_internal_misc_Unsafe,     getFloatVolatile_name, getFloat_signature,     F_RN)  \
1193   do_intrinsic(_getDoubleVolatile,        jdk_internal_misc_Unsafe,     getDoubleVolatile_name, getDouble_signature,   F_RN)  \
1194   do_intrinsic(_putObjectVolatile,        jdk_internal_misc_Unsafe,     putObjectVolatile_name, putObject_signature,   F_RN)  \
1195   do_intrinsic(_putBooleanVolatile,       jdk_internal_misc_Unsafe,     putBooleanVolatile_name, putBoolean_signature, F_RN)  \
1196   do_intrinsic(_putByteVolatile,          jdk_internal_misc_Unsafe,     putByteVolatile_name, putByte_signature,       F_RN)  \
1197   do_intrinsic(_putShortVolatile,         jdk_internal_misc_Unsafe,     putShortVolatile_name, putShort_signature,     F_RN)  \
1198   do_intrinsic(_putCharVolatile,          jdk_internal_misc_Unsafe,     putCharVolatile_name, putChar_signature,       F_RN)  \
1199   do_intrinsic(_putIntVolatile,           jdk_internal_misc_Unsafe,     putIntVolatile_name, putInt_signature,         F_RN)  \
1200   do_intrinsic(_putLongVolatile,          jdk_internal_misc_Unsafe,     putLongVolatile_name, putLong_signature,       F_RN)  \
1201   do_intrinsic(_putFloatVolatile,         jdk_internal_misc_Unsafe,     putFloatVolatile_name, putFloat_signature,     F_RN)  \
1202   do_intrinsic(_putDoubleVolatile,        jdk_internal_misc_Unsafe,     putDoubleVolatile_name, putDouble_signature,   F_RN)  \
1203                                                                                                                         \
1204   do_name(getObjectOpaque_name,"getObjectOpaque")     do_name(putObjectOpaque_name,"putObjectOpaque")                   \
1205   do_name(getBooleanOpaque_name,"getBooleanOpaque")   do_name(putBooleanOpaque_name,"putBooleanOpaque")                 \
1206   do_name(getByteOpaque_name,"getByteOpaque")         do_name(putByteOpaque_name,"putByteOpaque")                       \
1207   do_name(getShortOpaque_name,"getShortOpaque")       do_name(putShortOpaque_name,"putShortOpaque")                     \
1208   do_name(getCharOpaque_name,"getCharOpaque")         do_name(putCharOpaque_name,"putCharOpaque")                       \
1209   do_name(getIntOpaque_name,"getIntOpaque")           do_name(putIntOpaque_name,"putIntOpaque")                         \
1210   do_name(getLongOpaque_name,"getLongOpaque")         do_name(putLongOpaque_name,"putLongOpaque")                       \
1211   do_name(getFloatOpaque_name,"getFloatOpaque")       do_name(putFloatOpaque_name,"putFloatOpaque")                     \
1212   do_name(getDoubleOpaque_name,"getDoubleOpaque")     do_name(putDoubleOpaque_name,"putDoubleOpaque")                   \
1213                                                                                                                         \
1214   do_intrinsic(_getObjectOpaque,          jdk_internal_misc_Unsafe,        getObjectOpaque_name, getObject_signature,   F_R)  \
1215   do_intrinsic(_getBooleanOpaque,         jdk_internal_misc_Unsafe,        getBooleanOpaque_name, getBoolean_signature, F_R)  \
1216   do_intrinsic(_getByteOpaque,            jdk_internal_misc_Unsafe,        getByteOpaque_name, getByte_signature,       F_R)  \
1217   do_intrinsic(_getShortOpaque,           jdk_internal_misc_Unsafe,        getShortOpaque_name, getShort_signature,     F_R)  \
1218   do_intrinsic(_getCharOpaque,            jdk_internal_misc_Unsafe,        getCharOpaque_name, getChar_signature,       F_R)  \
1219   do_intrinsic(_getIntOpaque,             jdk_internal_misc_Unsafe,        getIntOpaque_name, getInt_signature,         F_R)  \
1220   do_intrinsic(_getLongOpaque,            jdk_internal_misc_Unsafe,        getLongOpaque_name, getLong_signature,       F_R)  \
1221   do_intrinsic(_getFloatOpaque,           jdk_internal_misc_Unsafe,        getFloatOpaque_name, getFloat_signature,     F_R)  \
1222   do_intrinsic(_getDoubleOpaque,          jdk_internal_misc_Unsafe,        getDoubleOpaque_name, getDouble_signature,   F_R)  \
1223   do_intrinsic(_putObjectOpaque,          jdk_internal_misc_Unsafe,        putObjectOpaque_name, putObject_signature,   F_R)  \
1224   do_intrinsic(_putBooleanOpaque,         jdk_internal_misc_Unsafe,        putBooleanOpaque_name, putBoolean_signature, F_R)  \
1225   do_intrinsic(_putByteOpaque,            jdk_internal_misc_Unsafe,        putByteOpaque_name, putByte_signature,       F_R)  \
1226   do_intrinsic(_putShortOpaque,           jdk_internal_misc_Unsafe,        putShortOpaque_name, putShort_signature,     F_R)  \
1227   do_intrinsic(_putCharOpaque,            jdk_internal_misc_Unsafe,        putCharOpaque_name, putChar_signature,       F_R)  \
1228   do_intrinsic(_putIntOpaque,             jdk_internal_misc_Unsafe,        putIntOpaque_name, putInt_signature,         F_R)  \
1229   do_intrinsic(_putLongOpaque,            jdk_internal_misc_Unsafe,        putLongOpaque_name, putLong_signature,       F_R)  \
1230   do_intrinsic(_putFloatOpaque,           jdk_internal_misc_Unsafe,        putFloatOpaque_name, putFloat_signature,     F_R)  \
1231   do_intrinsic(_putDoubleOpaque,          jdk_internal_misc_Unsafe,        putDoubleOpaque_name, putDouble_signature,   F_R)  \
1232                                                                                                                         \
1233   do_name(getObjectAcquire_name,  "getObjectAcquire")    do_name(putObjectRelease_name,  "putObjectRelease")            \
1234   do_name(getBooleanAcquire_name, "getBooleanAcquire")   do_name(putBooleanRelease_name, "putBooleanRelease")           \
1235   do_name(getByteAcquire_name,    "getByteAcquire")      do_name(putByteRelease_name,    "putByteRelease")              \
1236   do_name(getShortAcquire_name,   "getShortAcquire")     do_name(putShortRelease_name,   "putShortRelease")             \
1237   do_name(getCharAcquire_name,    "getCharAcquire")      do_name(putCharRelease_name,    "putCharRelease")              \
1238   do_name(getIntAcquire_name,     "getIntAcquire")       do_name(putIntRelease_name,     "putIntRelease")               \
1239   do_name(getLongAcquire_name,    "getLongAcquire")      do_name(putLongRelease_name,    "putLongRelease")              \
1240   do_name(getFloatAcquire_name,   "getFloatAcquire")     do_name(putFloatRelease_name,   "putFloatRelease")             \
1241   do_name(getDoubleAcquire_name,  "getDoubleAcquire")    do_name(putDoubleRelease_name,  "putDoubleRelease")            \
1242                                                                                                                         \
1243   do_intrinsic(_getObjectAcquire,        jdk_internal_misc_Unsafe,        getObjectAcquire_name, getObject_signature,   F_R)  \
1244   do_intrinsic(_getBooleanAcquire,       jdk_internal_misc_Unsafe,        getBooleanAcquire_name, getBoolean_signature, F_R)  \
1245   do_intrinsic(_getByteAcquire,          jdk_internal_misc_Unsafe,        getByteAcquire_name, getByte_signature,       F_R)  \
1246   do_intrinsic(_getShortAcquire,         jdk_internal_misc_Unsafe,        getShortAcquire_name, getShort_signature,     F_R)  \
1247   do_intrinsic(_getCharAcquire,          jdk_internal_misc_Unsafe,        getCharAcquire_name, getChar_signature,       F_R)  \
1248   do_intrinsic(_getIntAcquire,           jdk_internal_misc_Unsafe,        getIntAcquire_name, getInt_signature,         F_R)  \
1249   do_intrinsic(_getLongAcquire,          jdk_internal_misc_Unsafe,        getLongAcquire_name, getLong_signature,       F_R)  \
1250   do_intrinsic(_getFloatAcquire,         jdk_internal_misc_Unsafe,        getFloatAcquire_name, getFloat_signature,     F_R)  \
1251   do_intrinsic(_getDoubleAcquire,        jdk_internal_misc_Unsafe,        getDoubleAcquire_name, getDouble_signature,   F_R)  \
1252   do_intrinsic(_putObjectRelease,        jdk_internal_misc_Unsafe,        putObjectRelease_name, putObject_signature,   F_R)  \
1253   do_intrinsic(_putBooleanRelease,       jdk_internal_misc_Unsafe,        putBooleanRelease_name, putBoolean_signature, F_R)  \
1254   do_intrinsic(_putByteRelease,          jdk_internal_misc_Unsafe,        putByteRelease_name, putByte_signature,       F_R)  \
1255   do_intrinsic(_putShortRelease,         jdk_internal_misc_Unsafe,        putShortRelease_name, putShort_signature,     F_R)  \
1256   do_intrinsic(_putCharRelease,          jdk_internal_misc_Unsafe,        putCharRelease_name, putChar_signature,       F_R)  \
1257   do_intrinsic(_putIntRelease,           jdk_internal_misc_Unsafe,        putIntRelease_name, putInt_signature,         F_R)  \
1258   do_intrinsic(_putLongRelease,          jdk_internal_misc_Unsafe,        putLongRelease_name, putLong_signature,       F_R)  \
1259   do_intrinsic(_putFloatRelease,         jdk_internal_misc_Unsafe,        putFloatRelease_name, putFloat_signature,     F_R)  \
1260   do_intrinsic(_putDoubleRelease,        jdk_internal_misc_Unsafe,        putDoubleRelease_name, putDouble_signature,   F_R)  \
1261                                                                                                                         \
1262   do_name(getShortUnaligned_name,"getShortUnaligned")     do_name(putShortUnaligned_name,"putShortUnaligned")           \
1263   do_name(getCharUnaligned_name,"getCharUnaligned")       do_name(putCharUnaligned_name,"putCharUnaligned")             \
1264   do_name(getIntUnaligned_name,"getIntUnaligned")         do_name(putIntUnaligned_name,"putIntUnaligned")               \
1265   do_name(getLongUnaligned_name,"getLongUnaligned")       do_name(putLongUnaligned_name,"putLongUnaligned")             \
1266                                                                                                                         \
1267   do_intrinsic(_getShortUnaligned,         jdk_internal_misc_Unsafe,    getShortUnaligned_name, getShort_signature,     F_R)  \
1268   do_intrinsic(_getCharUnaligned,          jdk_internal_misc_Unsafe,    getCharUnaligned_name, getChar_signature,       F_R)  \
1269   do_intrinsic(_getIntUnaligned,           jdk_internal_misc_Unsafe,    getIntUnaligned_name, getInt_signature,         F_R)  \
1270   do_intrinsic(_getLongUnaligned,          jdk_internal_misc_Unsafe,    getLongUnaligned_name, getLong_signature,       F_R)  \
1271   do_intrinsic(_putShortUnaligned,         jdk_internal_misc_Unsafe,    putShortUnaligned_name, putShort_signature,     F_R)  \
1272   do_intrinsic(_putCharUnaligned,          jdk_internal_misc_Unsafe,    putCharUnaligned_name, putChar_signature,       F_R)  \
1273   do_intrinsic(_putIntUnaligned,           jdk_internal_misc_Unsafe,    putIntUnaligned_name, putInt_signature,         F_R)  \
1274   do_intrinsic(_putLongUnaligned,          jdk_internal_misc_Unsafe,    putLongUnaligned_name, putLong_signature,       F_R)  \
1275                                                                                                                         \
1276   do_signature(compareAndSetObject_signature,      "(Ljava/lang/Object;JLjava/lang/Object;Ljava/lang/Object;)Z")        \
1277   do_signature(compareAndExchangeObject_signature, "(Ljava/lang/Object;JLjava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;") \
1278   do_signature(compareAndSetLong_signature,        "(Ljava/lang/Object;JJJ)Z")                                          \
1279   do_signature(compareAndExchangeLong_signature,   "(Ljava/lang/Object;JJJ)J")                                          \
1280   do_signature(compareAndSetInt_signature,         "(Ljava/lang/Object;JII)Z")                                          \
1281   do_signature(compareAndExchangeInt_signature,    "(Ljava/lang/Object;JII)I")                                          \
1282   do_signature(compareAndSetByte_signature,        "(Ljava/lang/Object;JBB)Z")                                          \
1283   do_signature(compareAndExchangeByte_signature,   "(Ljava/lang/Object;JBB)B")                                          \
1284   do_signature(compareAndSetShort_signature,       "(Ljava/lang/Object;JSS)Z")                                          \
1285   do_signature(compareAndExchangeShort_signature,  "(Ljava/lang/Object;JSS)S")                                          \
1286                                                                                                                         \
1287   do_name(compareAndSetObject_name,              "compareAndSetObject")                                                 \
1288   do_name(compareAndExchangeObject_name,         "compareAndExchangeObject")                                            \
1289   do_name(compareAndExchangeObjectAcquire_name,  "compareAndExchangeObjectAcquire")                                     \
1290   do_name(compareAndExchangeObjectRelease_name,  "compareAndExchangeObjectRelease")                                     \
1291   do_name(compareAndSetLong_name,                "compareAndSetLong")                                                   \
1292   do_name(compareAndExchangeLong_name,           "compareAndExchangeLong")                                              \
1293   do_name(compareAndExchangeLongAcquire_name,    "compareAndExchangeLongAcquire")                                       \
1294   do_name(compareAndExchangeLongRelease_name,    "compareAndExchangeLongRelease")                                       \
1295   do_name(compareAndSetInt_name,                 "compareAndSetInt")                                                    \
1296   do_name(compareAndExchangeInt_name,            "compareAndExchangeInt")                                               \
1297   do_name(compareAndExchangeIntAcquire_name,     "compareAndExchangeIntAcquire")                                        \
1298   do_name(compareAndExchangeIntRelease_name,     "compareAndExchangeIntRelease")                                        \
1299   do_name(compareAndSetByte_name,                "compareAndSetByte")                                                   \
1300   do_name(compareAndExchangeByte_name,           "compareAndExchangeByte")                                              \
1301   do_name(compareAndExchangeByteAcquire_name,    "compareAndExchangeByteAcquire")                                       \
1302   do_name(compareAndExchangeByteRelease_name,    "compareAndExchangeByteRelease")                                       \
1303   do_name(compareAndSetShort_name,               "compareAndSetShort")                                                  \
1304   do_name(compareAndExchangeShort_name,          "compareAndExchangeShort")                                             \
1305   do_name(compareAndExchangeShortAcquire_name,   "compareAndExchangeShortAcquire")                                      \
1306   do_name(compareAndExchangeShortRelease_name,   "compareAndExchangeShortRelease")                                      \
1307                                                                                                                         \
1308   do_name(weakCompareAndSetObjectPlain_name,     "weakCompareAndSetObjectPlain")                                        \
1309   do_name(weakCompareAndSetObjectAcquire_name,   "weakCompareAndSetObjectAcquire")                                      \
1310   do_name(weakCompareAndSetObjectRelease_name,   "weakCompareAndSetObjectRelease")                                      \
1311   do_name(weakCompareAndSetObject_name,          "weakCompareAndSetObject")                                             \
1312   do_name(weakCompareAndSetLongPlain_name,       "weakCompareAndSetLongPlain")                                          \
1313   do_name(weakCompareAndSetLongAcquire_name,     "weakCompareAndSetLongAcquire")                                        \
1314   do_name(weakCompareAndSetLongRelease_name,     "weakCompareAndSetLongRelease")                                        \
1315   do_name(weakCompareAndSetLong_name,            "weakCompareAndSetLong")                                               \
1316   do_name(weakCompareAndSetIntPlain_name,        "weakCompareAndSetIntPlain")                                           \
1317   do_name(weakCompareAndSetIntAcquire_name,      "weakCompareAndSetIntAcquire")                                         \
1318   do_name(weakCompareAndSetIntRelease_name,      "weakCompareAndSetIntRelease")                                         \
1319   do_name(weakCompareAndSetInt_name,             "weakCompareAndSetInt")                                                \
1320   do_name(weakCompareAndSetBytePlain_name,       "weakCompareAndSetBytePlain")                                          \
1321   do_name(weakCompareAndSetByteAcquire_name,     "weakCompareAndSetByteAcquire")                                        \
1322   do_name(weakCompareAndSetByteRelease_name,     "weakCompareAndSetByteRelease")                                        \
1323   do_name(weakCompareAndSetByte_name,            "weakCompareAndSetByte")                                               \
1324   do_name(weakCompareAndSetShortPlain_name,      "weakCompareAndSetShortPlain")                                         \
1325   do_name(weakCompareAndSetShortAcquire_name,    "weakCompareAndSetShortAcquire")                                       \
1326   do_name(weakCompareAndSetShortRelease_name,    "weakCompareAndSetShortRelease")                                       \
1327   do_name(weakCompareAndSetShort_name,           "weakCompareAndSetShort")                                              \
1328                                                                                                                         \
1329   do_intrinsic(_compareAndSetObject,              jdk_internal_misc_Unsafe,  compareAndSetObject_name,              compareAndSetObject_signature,      F_RN) \
1330   do_intrinsic(_compareAndExchangeObject,         jdk_internal_misc_Unsafe,  compareAndExchangeObject_name,         compareAndExchangeObject_signature, F_RN) \
1331   do_intrinsic(_compareAndExchangeObjectAcquire,  jdk_internal_misc_Unsafe,  compareAndExchangeObjectAcquire_name,  compareAndExchangeObject_signature, F_R)  \
1332   do_intrinsic(_compareAndExchangeObjectRelease,  jdk_internal_misc_Unsafe,  compareAndExchangeObjectRelease_name,  compareAndExchangeObject_signature, F_R)  \
1333   do_intrinsic(_compareAndSetLong,                jdk_internal_misc_Unsafe,  compareAndSetLong_name,                compareAndSetLong_signature,        F_RN) \
1334   do_intrinsic(_compareAndExchangeLong,           jdk_internal_misc_Unsafe,  compareAndExchangeLong_name,           compareAndExchangeLong_signature,   F_RN) \
1335   do_intrinsic(_compareAndExchangeLongAcquire,    jdk_internal_misc_Unsafe,  compareAndExchangeLongAcquire_name,    compareAndExchangeLong_signature,   F_R)  \
1336   do_intrinsic(_compareAndExchangeLongRelease,    jdk_internal_misc_Unsafe,  compareAndExchangeLongRelease_name,    compareAndExchangeLong_signature,   F_R)  \
1337   do_intrinsic(_compareAndSetInt,                 jdk_internal_misc_Unsafe,  compareAndSetInt_name,                 compareAndSetInt_signature,         F_RN) \
1338   do_intrinsic(_compareAndExchangeInt,            jdk_internal_misc_Unsafe,  compareAndExchangeInt_name,            compareAndExchangeInt_signature,    F_RN) \
1339   do_intrinsic(_compareAndExchangeIntAcquire,     jdk_internal_misc_Unsafe,  compareAndExchangeIntAcquire_name,     compareAndExchangeInt_signature,    F_R)  \
1340   do_intrinsic(_compareAndExchangeIntRelease,     jdk_internal_misc_Unsafe,  compareAndExchangeIntRelease_name,     compareAndExchangeInt_signature,    F_R)  \
1341   do_intrinsic(_compareAndSetByte,                jdk_internal_misc_Unsafe,  compareAndSetByte_name,                compareAndSetByte_signature,        F_R)  \
1342   do_intrinsic(_compareAndExchangeByte,           jdk_internal_misc_Unsafe,  compareAndExchangeByte_name,           compareAndExchangeByte_signature,   F_R)  \
1343   do_intrinsic(_compareAndExchangeByteAcquire,    jdk_internal_misc_Unsafe,  compareAndExchangeByteAcquire_name,    compareAndExchangeByte_signature,   F_R)  \
1344   do_intrinsic(_compareAndExchangeByteRelease,    jdk_internal_misc_Unsafe,  compareAndExchangeByteRelease_name,    compareAndExchangeByte_signature,   F_R)  \
1345   do_intrinsic(_compareAndSetShort,               jdk_internal_misc_Unsafe,  compareAndSetShort_name,               compareAndSetShort_signature,       F_R)  \
1346   do_intrinsic(_compareAndExchangeShort,          jdk_internal_misc_Unsafe,  compareAndExchangeShort_name,          compareAndExchangeShort_signature,  F_R)  \
1347   do_intrinsic(_compareAndExchangeShortAcquire,   jdk_internal_misc_Unsafe,  compareAndExchangeShortAcquire_name,   compareAndExchangeShort_signature,  F_R)  \
1348   do_intrinsic(_compareAndExchangeShortRelease,   jdk_internal_misc_Unsafe,  compareAndExchangeShortRelease_name,   compareAndExchangeShort_signature,  F_R)  \
1349                                                                                                                                                              \
1350   do_intrinsic(_weakCompareAndSetObjectPlain,     jdk_internal_misc_Unsafe,  weakCompareAndSetObjectPlain_name,     compareAndSetObject_signature,      F_R) \
1351   do_intrinsic(_weakCompareAndSetObjectAcquire,   jdk_internal_misc_Unsafe,  weakCompareAndSetObjectAcquire_name,   compareAndSetObject_signature,      F_R) \
1352   do_intrinsic(_weakCompareAndSetObjectRelease,   jdk_internal_misc_Unsafe,  weakCompareAndSetObjectRelease_name,   compareAndSetObject_signature,      F_R) \
1353   do_intrinsic(_weakCompareAndSetObject,          jdk_internal_misc_Unsafe,  weakCompareAndSetObject_name,          compareAndSetObject_signature,      F_R) \
1354   do_intrinsic(_weakCompareAndSetLongPlain,       jdk_internal_misc_Unsafe,  weakCompareAndSetLongPlain_name,       compareAndSetLong_signature,        F_R) \
1355   do_intrinsic(_weakCompareAndSetLongAcquire,     jdk_internal_misc_Unsafe,  weakCompareAndSetLongAcquire_name,     compareAndSetLong_signature,        F_R) \
1356   do_intrinsic(_weakCompareAndSetLongRelease,     jdk_internal_misc_Unsafe,  weakCompareAndSetLongRelease_name,     compareAndSetLong_signature,        F_R) \
1357   do_intrinsic(_weakCompareAndSetLong,            jdk_internal_misc_Unsafe,  weakCompareAndSetLong_name,            compareAndSetLong_signature,        F_R) \
1358   do_intrinsic(_weakCompareAndSetIntPlain,        jdk_internal_misc_Unsafe,  weakCompareAndSetIntPlain_name,        compareAndSetInt_signature,         F_R) \
1359   do_intrinsic(_weakCompareAndSetIntAcquire,      jdk_internal_misc_Unsafe,  weakCompareAndSetIntAcquire_name,      compareAndSetInt_signature,         F_R) \
1360   do_intrinsic(_weakCompareAndSetIntRelease,      jdk_internal_misc_Unsafe,  weakCompareAndSetIntRelease_name,      compareAndSetInt_signature,         F_R) \
1361   do_intrinsic(_weakCompareAndSetInt,             jdk_internal_misc_Unsafe,  weakCompareAndSetInt_name,             compareAndSetInt_signature,         F_R) \
1362   do_intrinsic(_weakCompareAndSetBytePlain,       jdk_internal_misc_Unsafe,  weakCompareAndSetBytePlain_name,       compareAndSetByte_signature,        F_R) \
1363   do_intrinsic(_weakCompareAndSetByteAcquire,     jdk_internal_misc_Unsafe,  weakCompareAndSetByteAcquire_name,     compareAndSetByte_signature,        F_R) \
1364   do_intrinsic(_weakCompareAndSetByteRelease,     jdk_internal_misc_Unsafe,  weakCompareAndSetByteRelease_name,     compareAndSetByte_signature,        F_R) \
1365   do_intrinsic(_weakCompareAndSetByte,            jdk_internal_misc_Unsafe,  weakCompareAndSetByte_name,            compareAndSetByte_signature,        F_R) \
1366   do_intrinsic(_weakCompareAndSetShortPlain,      jdk_internal_misc_Unsafe,  weakCompareAndSetShortPlain_name,      compareAndSetShort_signature,       F_R) \
1367   do_intrinsic(_weakCompareAndSetShortAcquire,    jdk_internal_misc_Unsafe,  weakCompareAndSetShortAcquire_name,    compareAndSetShort_signature,       F_R) \
1368   do_intrinsic(_weakCompareAndSetShortRelease,    jdk_internal_misc_Unsafe,  weakCompareAndSetShortRelease_name,    compareAndSetShort_signature,       F_R) \
1369   do_intrinsic(_weakCompareAndSetShort,           jdk_internal_misc_Unsafe,  weakCompareAndSetShort_name,           compareAndSetShort_signature,       F_R) \
1370                            \
1371   do_intrinsic(_getAndAddInt,             jdk_internal_misc_Unsafe,     getAndAddInt_name, getAndAddInt_signature, F_R)       \
1372    do_name(     getAndAddInt_name,                                      "getAndAddInt")                                       \
1373    do_signature(getAndAddInt_signature,                                 "(Ljava/lang/Object;JI)I" )                           \
1374   do_intrinsic(_getAndAddLong,            jdk_internal_misc_Unsafe,     getAndAddLong_name, getAndAddLong_signature, F_R)     \
1375    do_name(     getAndAddLong_name,                                     "getAndAddLong")                                      \
1376    do_signature(getAndAddLong_signature,                                "(Ljava/lang/Object;JJ)J" )                           \
1377   do_intrinsic(_getAndAddByte,            jdk_internal_misc_Unsafe,     getAndAddByte_name, getAndAddByte_signature, F_R)     \
1378    do_name(     getAndAddByte_name,                                     "getAndAddByte")                                      \
1379    do_signature(getAndAddByte_signature,                                "(Ljava/lang/Object;JB)B" )                           \
1380   do_intrinsic(_getAndAddShort,           jdk_internal_misc_Unsafe,     getAndAddShort_name, getAndAddShort_signature, F_R)   \
1381    do_name(     getAndAddShort_name,                                    "getAndAddShort")                                     \
1382    do_signature(getAndAddShort_signature,                               "(Ljava/lang/Object;JS)S" )                           \
1383   do_intrinsic(_getAndSetInt,             jdk_internal_misc_Unsafe,     getAndSetInt_name, getAndSetInt_signature, F_R)       \
1384    do_name(     getAndSetInt_name,                                      "getAndSetInt")                                       \
1385    do_alias(    getAndSetInt_signature,                                 /*"(Ljava/lang/Object;JI)I"*/ getAndAddInt_signature)   \
1386   do_intrinsic(_getAndSetLong,            jdk_internal_misc_Unsafe,     getAndSetLong_name, getAndSetLong_signature, F_R)     \
1387    do_name(     getAndSetLong_name,                                     "getAndSetLong")                                      \
1388    do_alias(    getAndSetLong_signature,                                /*"(Ljava/lang/Object;JJ)J"*/ getAndAddLong_signature)  \
1389   do_intrinsic(_getAndSetByte,            jdk_internal_misc_Unsafe,     getAndSetByte_name, getAndSetByte_signature, F_R)     \
1390    do_name(     getAndSetByte_name,                                     "getAndSetByte")                                      \
1391    do_alias(    getAndSetByte_signature,                                /*"(Ljava/lang/Object;JB)B"*/ getAndAddByte_signature)  \
1392   do_intrinsic(_getAndSetShort,           jdk_internal_misc_Unsafe,     getAndSetShort_name, getAndSetShort_signature, F_R)   \
1393    do_name(     getAndSetShort_name,                                    "getAndSetShort")                                     \
1394    do_alias(    getAndSetShort_signature,                               /*"(Ljava/lang/Object;JS)S"*/ getAndAddShort_signature) \
1395   do_intrinsic(_getAndSetObject,          jdk_internal_misc_Unsafe,     getAndSetObject_name, getAndSetObject_signature,  F_R)\
1396    do_name(     getAndSetObject_name,                                   "getAndSetObject")                                    \
1397    do_signature(getAndSetObject_signature,                              "(Ljava/lang/Object;JLjava/lang/Object;)Ljava/lang/Object;" ) \
1398                                                                                                                                \
1399  /* (2) Bytecode intrinsics                                                                        */                        \
1400                                                                                                                                \
1401   do_intrinsic(_park,                     jdk_internal_misc_Unsafe,     park_name, park_signature,                     F_R)    \
1402    do_name(     park_name,                                              "park")                                                \
1403    do_signature(park_signature,                                         "(ZJ)V")                                               \
1404   do_intrinsic(_unpark,                   jdk_internal_misc_Unsafe,     unpark_name, unpark_signature,                 F_R)    \
1405    do_name(     unpark_name,                                            "unpark")                                              \
1406    do_alias(    unpark_signature,                                       /*(LObject;)V*/ object_void_signature)                 \
1407                                                                                                                                \
1408   do_intrinsic(_StringBuilder_void,   java_lang_StringBuilder, object_initializer_name, void_method_signature,     F_R)   \
1409   do_intrinsic(_StringBuilder_int,    java_lang_StringBuilder, object_initializer_name, int_void_signature,        F_R)   \
1410   do_intrinsic(_StringBuilder_String, java_lang_StringBuilder, object_initializer_name, string_void_signature,     F_R)   \
1411                                                                                                                           \
1412   do_intrinsic(_StringBuilder_append_char,   java_lang_StringBuilder, append_name, char_StringBuilder_signature,   F_R)   \
1413   do_intrinsic(_StringBuilder_append_int,    java_lang_StringBuilder, append_name, int_StringBuilder_signature,    F_R)   \
1414   do_intrinsic(_StringBuilder_append_String, java_lang_StringBuilder, append_name, String_StringBuilder_signature, F_R)   \
1415                                                                                                                           \
1416   do_intrinsic(_StringBuilder_toString, java_lang_StringBuilder, toString_name, void_string_signature,             F_R)   \
1417                                                                                                                           \
1418   do_intrinsic(_StringBuffer_void,   java_lang_StringBuffer, object_initializer_name, void_method_signature,       F_R)   \
1419   do_intrinsic(_StringBuffer_int,    java_lang_StringBuffer, object_initializer_name, int_void_signature,          F_R)   \
1420   do_intrinsic(_StringBuffer_String, java_lang_StringBuffer, object_initializer_name, string_void_signature,       F_R)   \
1421                                                                                                                           \
1422   do_intrinsic(_StringBuffer_append_char,   java_lang_StringBuffer, append_name, char_StringBuffer_signature,      F_Y)   \
1423   do_intrinsic(_StringBuffer_append_int,    java_lang_StringBuffer, append_name, int_StringBuffer_signature,       F_Y)   \
1424   do_intrinsic(_StringBuffer_append_String, java_lang_StringBuffer, append_name, String_StringBuffer_signature,    F_Y)   \
1425                                                                                                                           \
1426   do_intrinsic(_StringBuffer_toString,  java_lang_StringBuffer, toString_name, void_string_signature,              F_Y)   \
1427                                                                                                                           \
1428   do_intrinsic(_Integer_toString,      java_lang_Integer, toString_name, int_String_signature,                     F_S)   \
1429                                                                                                                           \
1430   do_intrinsic(_String_String, java_lang_String, object_initializer_name, string_void_signature,                   F_R)   \
1431                                                                                                                           \
1432   do_intrinsic(_Object_init,              java_lang_Object, object_initializer_name, void_method_signature,        F_R)   \
1433   /*    (symbol object_initializer_name defined above) */                                                                 \
1434                                                                                                                           \
1435   do_intrinsic(_invoke,                   java_lang_reflect_Method, invoke_name, object_object_array_object_signature, F_R) \
1436   /*   (symbols invoke_name and invoke_signature defined above) */                                                      \
1437   /* the polymorphic MH intrinsics must be in compact order, with _invokeGeneric first and _linkToInterface last */     \
1438   do_intrinsic(_invokeGeneric,            java_lang_invoke_MethodHandle, invoke_name,           star_name, F_RN)        \
1439   do_intrinsic(_invokeBasic,              java_lang_invoke_MethodHandle, invokeBasic_name,      star_name, F_RN)        \
1440   do_intrinsic(_linkToVirtual,            java_lang_invoke_MethodHandle, linkToVirtual_name,    star_name, F_SN)        \
1441   do_intrinsic(_linkToStatic,             java_lang_invoke_MethodHandle, linkToStatic_name,     star_name, F_SN)        \
1442   do_intrinsic(_linkToSpecial,            java_lang_invoke_MethodHandle, linkToSpecial_name,    star_name, F_SN)        \
1443   do_intrinsic(_linkToInterface,          java_lang_invoke_MethodHandle, linkToInterface_name,  star_name, F_SN)        \
1444   /* special marker for bytecode generated for the JVM from a LambdaForm: */                                            \
1445   do_intrinsic(_compiledLambdaForm,       java_lang_invoke_MethodHandle, compiledLambdaForm_name, star_name, F_RN)      \
1446                                                                                                                         \
1447   /* unboxing methods: */                                                                                               \
1448   do_intrinsic(_booleanValue,             java_lang_Boolean,      booleanValue_name, void_boolean_signature, F_R)       \
1449    do_name(     booleanValue_name,       "booleanValue")                                                                \
1450   do_intrinsic(_byteValue,                java_lang_Byte,         byteValue_name, void_byte_signature, F_R)             \
1451    do_name(     byteValue_name,          "byteValue")                                                                   \
1452   do_intrinsic(_charValue,                java_lang_Character,    charValue_name, void_char_signature, F_R)             \
1453    do_name(     charValue_name,          "charValue")                                                                   \
1454   do_intrinsic(_shortValue,               java_lang_Short,        shortValue_name, void_short_signature, F_R)           \
1455    do_name(     shortValue_name,         "shortValue")                                                                  \
1456   do_intrinsic(_intValue,                 java_lang_Integer,      intValue_name, void_int_signature, F_R)               \
1457    do_name(     intValue_name,           "intValue")                                                                    \
1458   do_intrinsic(_longValue,                java_lang_Long,         longValue_name, void_long_signature, F_R)             \
1459    do_name(     longValue_name,          "longValue")                                                                   \
1460   do_intrinsic(_floatValue,               java_lang_Float,        floatValue_name, void_float_signature, F_R)           \
1461    do_name(     floatValue_name,         "floatValue")                                                                  \
1462   do_intrinsic(_doubleValue,              java_lang_Double,       doubleValue_name, void_double_signature, F_R)         \
1463    do_name(     doubleValue_name,        "doubleValue")                                                                 \
1464                                                                                                                         \
1465   /* boxing methods: */                                                                                                 \
1466    do_name(    valueOf_name,              "valueOf")                                                                    \
1467   do_intrinsic(_Boolean_valueOf,          java_lang_Boolean,      valueOf_name, Boolean_valueOf_signature, F_S)         \
1468    do_name(     Boolean_valueOf_signature,                       "(Z)Ljava/lang/Boolean;")                              \
1469   do_intrinsic(_Byte_valueOf,             java_lang_Byte,         valueOf_name, Byte_valueOf_signature, F_S)            \
1470    do_name(     Byte_valueOf_signature,                          "(B)Ljava/lang/Byte;")                                 \
1471   do_intrinsic(_Character_valueOf,        java_lang_Character,    valueOf_name, Character_valueOf_signature, F_S)       \
1472    do_name(     Character_valueOf_signature,                     "(C)Ljava/lang/Character;")                            \
1473   do_intrinsic(_Short_valueOf,            java_lang_Short,        valueOf_name, Short_valueOf_signature, F_S)           \
1474    do_name(     Short_valueOf_signature,                         "(S)Ljava/lang/Short;")                                \
1475   do_intrinsic(_Integer_valueOf,          java_lang_Integer,      valueOf_name, Integer_valueOf_signature, F_S)         \
1476    do_name(     Integer_valueOf_signature,                       "(I)Ljava/lang/Integer;")                              \
1477   do_intrinsic(_Long_valueOf,             java_lang_Long,         valueOf_name, Long_valueOf_signature, F_S)            \
1478    do_name(     Long_valueOf_signature,                          "(J)Ljava/lang/Long;")                                 \
1479   do_intrinsic(_Float_valueOf,            java_lang_Float,        valueOf_name, Float_valueOf_signature, F_S)           \
1480    do_name(     Float_valueOf_signature,                         "(F)Ljava/lang/Float;")                                \
1481   do_intrinsic(_Double_valueOf,           java_lang_Double,       valueOf_name, Double_valueOf_signature, F_S)          \
1482    do_name(     Double_valueOf_signature,                        "(D)Ljava/lang/Double;")                               \
1483                                                                                                                         \
1484   /* forEachRemaining */                                                                             \
1485   do_intrinsic(_forEachRemaining, java_util_stream_StreamsRangeIntSpliterator, forEachRemaining_name, forEachRemaining_signature, F_R) \
1486    do_name(     forEachRemaining_name,    "forEachRemaining")                                                           \
1487    do_name(     forEachRemaining_signature,                      "(Ljava/util/function/IntConsumer;)V")                 \
1488 
1489     /*end*/
1490 
1491 
1492 
1493 
1494 // Class vmSymbols
1495 
1496 class vmSymbols: AllStatic {
1497   friend class vmIntrinsics;
1498   friend class VMStructs;
1499   friend class JVMCIVMStructs;
1500  public:
1501   // enum for figuring positions and size of array holding Symbol*s
1502   enum SID {
1503     NO_SID = 0,
1504 
1505     #define VM_SYMBOL_ENUM(name, string) VM_SYMBOL_ENUM_NAME(name),
1506     VM_SYMBOLS_DO(VM_SYMBOL_ENUM, VM_ALIAS_IGNORE)
1507     #undef VM_SYMBOL_ENUM
1508 
1509     SID_LIMIT,
1510 
1511     #define VM_ALIAS_ENUM(name, def) VM_SYMBOL_ENUM_NAME(name) = VM_SYMBOL_ENUM_NAME(def),
1512     VM_SYMBOLS_DO(VM_SYMBOL_IGNORE, VM_ALIAS_ENUM)
1513     #undef VM_ALIAS_ENUM
1514 
1515     FIRST_SID = NO_SID + 1
1516   };
1517   enum {
1518     log2_SID_LIMIT = 10         // checked by an assert at start-up
1519   };
1520 
1521  private:
1522   // The symbol array
1523   static Symbol* _symbols[];
1524 
1525   // Field signatures indexed by BasicType.
1526   static Symbol* _type_signatures[T_VOID+1];
1527 
1528  public:
1529   // Initialization
1530   static void initialize(TRAPS);
1531   // Accessing
1532   #define VM_SYMBOL_DECLARE(name, ignore)                 \
1533     static Symbol* name() {                               \
1534       return _symbols[VM_SYMBOL_ENUM_NAME(name)];         \
1535     }
1536   VM_SYMBOLS_DO(VM_SYMBOL_DECLARE, VM_SYMBOL_DECLARE)
1537   #undef VM_SYMBOL_DECLARE
1538 
1539   // Sharing support
1540   static void symbols_do(SymbolClosure* f);
1541   static void metaspace_pointers_do(MetaspaceClosure *it);
1542   static void serialize(SerializeClosure* soc);
1543 
1544   static Symbol* type_signature(BasicType t) {
1545     assert((uint)t < T_VOID+1, "range check");
1546     assert(_type_signatures[t] != NULL, "domain check");
1547     return _type_signatures[t];
1548   }
1549   // inverse of type_signature; returns T_OBJECT if s is not recognized
1550   static BasicType signature_type(const Symbol* s);
1551 
1552   static Symbol* symbol_at(SID id) {
1553     assert(id >= FIRST_SID && id < SID_LIMIT, "oob");
1554     assert(_symbols[id] != NULL, "init");
1555     return _symbols[id];
1556   }
1557 
1558   // Returns symbol's SID if one is assigned, else NO_SID.
1559   static SID find_sid(const Symbol* symbol);
1560   static SID find_sid(const char* symbol_name);
1561 
1562 #ifndef PRODUCT
1563   // No need for this in the product:
1564   static const char* name_for(SID sid);
1565 #endif //PRODUCT
1566 };
1567 
1568 // VM Intrinsic ID's uniquely identify some very special methods
1569 class vmIntrinsics: AllStatic {
1570   friend class vmSymbols;
1571   friend class ciObjectFactory;
1572 
1573  public:
1574   // Accessing
1575   enum ID {
1576     _none = 0,                      // not an intrinsic (default answer)
1577 
1578     #define VM_INTRINSIC_ENUM(id, klass, name, sig, flags)  id,
1579     VM_INTRINSICS_DO(VM_INTRINSIC_ENUM,
1580                      VM_SYMBOL_IGNORE, VM_SYMBOL_IGNORE, VM_SYMBOL_IGNORE, VM_ALIAS_IGNORE)
1581     #undef VM_INTRINSIC_ENUM
1582 
1583     ID_LIMIT,
1584     LAST_COMPILER_INLINE = _getAndSetObject,
1585     FIRST_MH_SIG_POLY    = _invokeGeneric,
1586     FIRST_MH_STATIC      = _linkToVirtual,
1587     LAST_MH_SIG_POLY     = _linkToInterface,
1588 
1589     FIRST_ID = _none + 1
1590   };
1591 
1592   enum Flags {
1593     // AccessFlags syndromes relevant to intrinsics.
1594     F_none = 0,
1595     F_R,                        // !static ?native !synchronized (R="regular")
1596     F_S,                        //  static ?native !synchronized
1597     F_Y,                        // !static ?native  synchronized
1598     F_RN,                       // !static  native !synchronized
1599     F_SN,                       //  static  native !synchronized
1600     F_RNY,                      // !static  native  synchronized
1601 
1602     FLAG_LIMIT
1603   };
1604   enum {
1605     log2_FLAG_LIMIT = 4         // checked by an assert at start-up
1606   };
1607 
1608 public:
1609   static ID ID_from(int raw_id) {
1610     assert(raw_id >= (int)_none && raw_id < (int)ID_LIMIT,
1611            "must be a valid intrinsic ID");
1612     return (ID)raw_id;
1613   }
1614 
1615   static const char* name_at(ID id);
1616 
1617 private:
1618   static ID find_id_impl(vmSymbols::SID holder,
1619                          vmSymbols::SID name,
1620                          vmSymbols::SID sig,
1621                          jshort flags);
1622 
1623 public:
1624   // Given a method's class, name, signature, and access flags, report its ID.
1625   static ID find_id(vmSymbols::SID holder,
1626                     vmSymbols::SID name,
1627                     vmSymbols::SID sig,
1628                     jshort flags) {
1629     ID id = find_id_impl(holder, name, sig, flags);
1630 #ifdef ASSERT
1631     // ID _none does not hold the following asserts.
1632     if (id == _none)  return id;
1633 #endif
1634     assert(    class_for(id) == holder, "correct id");
1635     assert(     name_for(id) == name,   "correct id");
1636     assert(signature_for(id) == sig,    "correct id");
1637     return id;
1638   }
1639 
1640   static void verify_method(ID actual_id, Method* m) PRODUCT_RETURN;
1641 
1642   // Find out the symbols behind an intrinsic:
1643   static vmSymbols::SID     class_for(ID id);
1644   static vmSymbols::SID      name_for(ID id);
1645   static vmSymbols::SID signature_for(ID id);
1646   static Flags              flags_for(ID id);
1647 
1648   static const char* short_name_as_C_string(ID id, char* buf, int size);
1649 
1650   // Wrapper object methods:
1651   static ID for_boxing(BasicType type);
1652   static ID for_unboxing(BasicType type);
1653 
1654   // Raw conversion:
1655   static ID for_raw_conversion(BasicType src, BasicType dest);
1656 
1657   // The methods below provide information related to compiling intrinsics.
1658 
1659   // (1) Information needed by the C1 compiler.
1660 
1661   static bool preserves_state(vmIntrinsics::ID id);
1662   static bool can_trap(vmIntrinsics::ID id);
1663   static bool should_be_pinned(vmIntrinsics::ID id);
1664 
1665   // (2) Information needed by the C2 compiler.
1666 
1667   // Returns true if the intrinsic for method 'method' will perform a virtual dispatch.
1668   static bool does_virtual_dispatch(vmIntrinsics::ID id);
1669   // A return value larger than 0 indicates that the intrinsic for method
1670   // 'method' requires predicated logic.
1671   static int predicates_needed(vmIntrinsics::ID id);
1672 
1673   // Returns true if a compiler intrinsic is disabled by command-line flags
1674   // and false otherwise.
1675   static bool is_disabled_by_flags(const methodHandle& method);
1676   static bool is_disabled_by_flags(vmIntrinsics::ID id);
1677   static bool is_intrinsic_disabled(vmIntrinsics::ID id);
1678   static bool is_intrinsic_available(vmIntrinsics::ID id);
1679 };
1680 
1681 #endif // SHARE_VM_CLASSFILE_VMSYMBOLS_HPP
--- EOF ---