1 /* 2 * Copyright (c) 1997, 2024, 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_CLASSFILE_VMSYMBOLS_HPP 26 #define SHARE_CLASSFILE_VMSYMBOLS_HPP 27 28 #include "classfile/vmIntrinsics.hpp" 29 #include "jvmci/vmSymbols_jvmci.hpp" 30 #include "memory/iterator.hpp" 31 #include "oops/symbol.hpp" 32 #include "utilities/macros.hpp" 33 #include "utilities/enumIterator.hpp" 34 35 class SerializeClosure; 36 37 // The class vmSymbols is a name space for fast lookup of 38 // symbols commonly used in the VM. 39 // 40 // Sample usage: 41 // 42 // Symbol* obj = vmSymbols::java_lang_Object(); 43 44 45 // Useful sub-macros exported by this header file: 46 47 #define VM_SYMBOL_ENUM_NAME_(name) name##_enum 48 #define VM_SYMBOL_ENUM_NAME(name) vmSymbolID::VM_SYMBOL_ENUM_NAME_(name) 49 #define VM_INTRINSIC_IGNORE(id, class, name, sig, flags) /*ignored*/ 50 #define VM_SYMBOL_IGNORE(id, name) /*ignored*/ 51 #define VM_ALIAS_IGNORE(id, id2) /*ignored*/ 52 53 // Mapping function names to values. New entries should be added below. 54 55 #define VM_SYMBOLS_DO(template, do_alias) \ 56 /* commonly used class, package, module names */ \ 57 template(java_base, "java.base") \ 58 template(java_lang_System, "java/lang/System") \ 59 template(java_lang_Object, "java/lang/Object") \ 60 template(java_lang_Class, "java/lang/Class") \ 61 template(java_lang_Module, "java/lang/Module") \ 62 template(java_lang_String, "java/lang/String") \ 63 template(java_lang_StringLatin1, "java/lang/StringLatin1") \ 64 template(java_lang_StringUTF16, "java/lang/StringUTF16") \ 65 template(java_lang_Thread, "java/lang/Thread") \ 66 template(java_lang_Thread_FieldHolder, "java/lang/Thread$FieldHolder") \ 67 template(java_lang_Thread_Constants, "java/lang/Thread$Constants") \ 68 template(java_lang_ThreadGroup, "java/lang/ThreadGroup") \ 69 template(java_lang_BaseVirtualThread, "java/lang/BaseVirtualThread") \ 70 template(java_lang_VirtualThread, "java/lang/VirtualThread") \ 71 template(java_lang_BoundVirtualThread, "java/lang/ThreadBuilders$BoundVirtualThread") \ 72 template(java_lang_Cloneable, "java/lang/Cloneable") \ 73 template(java_lang_Throwable, "java/lang/Throwable") \ 74 template(java_lang_ClassLoader, "java/lang/ClassLoader") \ 75 template(java_lang_Runnable, "java/lang/Runnable") \ 76 template(jdk_internal_vm_ContinuationScope, "jdk/internal/vm/ContinuationScope") \ 77 template(jdk_internal_vm_StackChunk, "jdk/internal/vm/StackChunk") \ 78 template(java_lang_Boolean, "java/lang/Boolean") \ 79 template(java_lang_Character, "java/lang/Character") \ 80 template(java_lang_Character_CharacterCache, "java/lang/Character$CharacterCache") \ 81 template(java_lang_CharacterDataLatin1, "java/lang/CharacterDataLatin1") \ 82 template(java_lang_Float, "java/lang/Float") \ 83 template(java_lang_Double, "java/lang/Double") \ 84 template(java_lang_Byte, "java/lang/Byte") \ 85 template(java_lang_Byte_ByteCache, "java/lang/Byte$ByteCache") \ 86 template(java_lang_Short, "java/lang/Short") \ 87 template(java_lang_Short_ShortCache, "java/lang/Short$ShortCache") \ 88 template(java_lang_Integer, "java/lang/Integer") \ 89 template(java_lang_Integer_IntegerCache, "java/lang/Integer$IntegerCache") \ 90 template(java_lang_Long, "java/lang/Long") \ 91 template(java_lang_Long_LongCache, "java/lang/Long$LongCache") \ 92 \ 93 template(jdk_internal_vm_vector_VectorSupport, "jdk/internal/vm/vector/VectorSupport") \ 94 template(jdk_internal_vm_vector_VectorPayload, "jdk/internal/vm/vector/VectorSupport$VectorPayload") \ 95 template(jdk_internal_vm_vector_Vector, "jdk/internal/vm/vector/VectorSupport$Vector") \ 96 template(jdk_internal_vm_vector_VectorMask, "jdk/internal/vm/vector/VectorSupport$VectorMask") \ 97 template(jdk_internal_vm_vector_VectorShuffle, "jdk/internal/vm/vector/VectorSupport$VectorShuffle") \ 98 template(payload_name, "payload") \ 99 template(ETYPE_name, "ETYPE") \ 100 template(VLENGTH_name, "VLENGTH") \ 101 \ 102 template(jdk_internal_vm_FillerObject, "jdk/internal/vm/FillerObject") \ 103 \ 104 template(java_lang_Shutdown, "java/lang/Shutdown") \ 105 template(java_lang_ref_Reference, "java/lang/ref/Reference") \ 106 template(java_lang_ref_SoftReference, "java/lang/ref/SoftReference") \ 107 template(java_lang_ref_WeakReference, "java/lang/ref/WeakReference") \ 108 template(java_lang_ref_FinalReference, "java/lang/ref/FinalReference") \ 109 template(java_lang_ref_PhantomReference, "java/lang/ref/PhantomReference") \ 110 template(java_lang_ref_Finalizer, "java/lang/ref/Finalizer") \ 111 template(java_lang_reflect_AccessibleObject, "java/lang/reflect/AccessibleObject") \ 112 template(java_lang_reflect_Method, "java/lang/reflect/Method") \ 113 template(java_lang_reflect_Constructor, "java/lang/reflect/Constructor") \ 114 template(java_lang_reflect_Field, "java/lang/reflect/Field") \ 115 template(java_lang_reflect_Parameter, "java/lang/reflect/Parameter") \ 116 template(java_lang_reflect_Array, "java/lang/reflect/Array") \ 117 template(java_lang_reflect_RecordComponent, "java/lang/reflect/RecordComponent") \ 118 template(java_lang_StringBuffer, "java/lang/StringBuffer") \ 119 template(java_lang_StringBuilder, "java/lang/StringBuilder") \ 120 template(java_lang_SecurityManager, "java/lang/SecurityManager") \ 121 template(java_lang_ScopedValue, "java/lang/ScopedValue") \ 122 template(java_lang_ScopedValue_Carrier, "java/lang/ScopedValue$Carrier") \ 123 template(java_security_AccessControlContext, "java/security/AccessControlContext") \ 124 template(java_security_AccessController, "java/security/AccessController") \ 125 template(executePrivileged_name, "executePrivileged") \ 126 template(java_security_CodeSource, "java/security/CodeSource") \ 127 template(java_security_ProtectionDomain, "java/security/ProtectionDomain") \ 128 template(java_security_SecureClassLoader, "java/security/SecureClassLoader") \ 129 template(java_net_URL, "java/net/URL") \ 130 template(java_net_URLClassLoader, "java/net/URLClassLoader") \ 131 template(java_util_jar_Manifest, "java/util/jar/Manifest") \ 132 template(java_io_ByteArrayInputStream, "java/io/ByteArrayInputStream") \ 133 template(java_io_Serializable, "java/io/Serializable") \ 134 template(java_nio_Buffer, "java/nio/Buffer") \ 135 template(java_util_Arrays, "java/util/Arrays") \ 136 template(java_util_Properties, "java/util/Properties") \ 137 template(java_util_DualPivotQuicksort, "java/util/DualPivotQuicksort") \ 138 template(jdk_internal_misc_Signal, "jdk/internal/misc/Signal") \ 139 template(jdk_internal_util_Preconditions, "jdk/internal/util/Preconditions") \ 140 template(java_lang_AssertionStatusDirectives, "java/lang/AssertionStatusDirectives") \ 141 template(jdk_internal_vm_PostVMInitHook, "jdk/internal/vm/PostVMInitHook") \ 142 template(java_util_Iterator, "java/util/Iterator") \ 143 template(java_lang_Record, "java/lang/Record") \ 144 template(sun_instrument_InstrumentationImpl, "sun/instrument/InstrumentationImpl") \ 145 template(sun_invoke_util_ValueConversions, "sun/invoke/util/ValueConversions") \ 146 \ 147 template(jdk_internal_loader_NativeLibraries, "jdk/internal/loader/NativeLibraries") \ 148 template(jdk_internal_loader_BuiltinClassLoader, "jdk/internal/loader/BuiltinClassLoader") \ 149 template(jdk_internal_loader_ClassLoaders_AppClassLoader, "jdk/internal/loader/ClassLoaders$AppClassLoader") \ 150 template(jdk_internal_loader_ClassLoaders_PlatformClassLoader, "jdk/internal/loader/ClassLoaders$PlatformClassLoader") \ 151 template(java_lang_Deprecated, "Ljava/lang/Deprecated;") \ 152 template(since, "since") \ 153 template(for_removal, "forRemoval") \ 154 /* Java runtime version access */ \ 155 template(java_lang_VersionProps, "java/lang/VersionProps") \ 156 template(java_version_name, "java_version") \ 157 template(java_runtime_name_name, "java_runtime_name") \ 158 template(java_runtime_version_name, "java_runtime_version") \ 159 template(java_runtime_vendor_version_name, "VENDOR_VERSION") \ 160 template(java_runtime_vendor_vm_bug_url_name, "VENDOR_URL_VM_BUG") \ 161 \ 162 /* system initialization */ \ 163 template(initPhase1_name, "initPhase1") \ 164 template(initPhase2_name, "initPhase2") \ 165 template(initPhase3_name, "initPhase3") \ 166 template(java_lang_module_init_signature, "(Ljava/lang/ClassLoader;Ljava/lang/String;)V") \ 167 \ 168 /* class file format tags */ \ 169 template(tag_source_file, "SourceFile") \ 170 template(tag_inner_classes, "InnerClasses") \ 171 template(tag_nest_members, "NestMembers") \ 172 template(tag_nest_host, "NestHost") \ 173 template(tag_constant_value, "ConstantValue") \ 174 template(tag_code, "Code") \ 175 template(tag_exceptions, "Exceptions") \ 176 template(tag_line_number_table, "LineNumberTable") \ 177 template(tag_local_variable_table, "LocalVariableTable") \ 178 template(tag_local_variable_type_table, "LocalVariableTypeTable") \ 179 template(tag_method_parameters, "MethodParameters") \ 180 template(tag_stack_map_table, "StackMapTable") \ 181 template(tag_synthetic, "Synthetic") \ 182 template(tag_deprecated, "Deprecated") \ 183 template(tag_source_debug_extension, "SourceDebugExtension") \ 184 template(tag_signature, "Signature") \ 185 template(tag_record, "Record") \ 186 template(tag_runtime_visible_annotations, "RuntimeVisibleAnnotations") \ 187 template(tag_runtime_invisible_annotations, "RuntimeInvisibleAnnotations") \ 188 template(tag_runtime_visible_parameter_annotations, "RuntimeVisibleParameterAnnotations") \ 189 template(tag_runtime_invisible_parameter_annotations,"RuntimeInvisibleParameterAnnotations") \ 190 template(tag_annotation_default, "AnnotationDefault") \ 191 template(tag_runtime_visible_type_annotations, "RuntimeVisibleTypeAnnotations") \ 192 template(tag_runtime_invisible_type_annotations, "RuntimeInvisibleTypeAnnotations") \ 193 template(tag_enclosing_method, "EnclosingMethod") \ 194 template(tag_bootstrap_methods, "BootstrapMethods") \ 195 template(tag_permitted_subclasses, "PermittedSubclasses") \ 196 \ 197 /* exception klasses: at least all exceptions thrown by the VM have entries here */ \ 198 template(java_lang_ArithmeticException, "java/lang/ArithmeticException") \ 199 template(java_lang_ArrayIndexOutOfBoundsException, "java/lang/ArrayIndexOutOfBoundsException") \ 200 template(java_lang_ArrayStoreException, "java/lang/ArrayStoreException") \ 201 template(java_lang_ClassCastException, "java/lang/ClassCastException") \ 202 template(java_lang_ClassNotFoundException, "java/lang/ClassNotFoundException") \ 203 template(java_lang_CloneNotSupportedException, "java/lang/CloneNotSupportedException") \ 204 template(java_lang_IllegalAccessException, "java/lang/IllegalAccessException") \ 205 template(java_lang_IllegalArgumentException, "java/lang/IllegalArgumentException") \ 206 template(java_lang_IllegalCallerException, "java/lang/IllegalCallerException") \ 207 template(java_lang_IllegalStateException, "java/lang/IllegalStateException") \ 208 template(java_lang_IllegalMonitorStateException, "java/lang/IllegalMonitorStateException") \ 209 template(java_lang_IllegalThreadStateException, "java/lang/IllegalThreadStateException") \ 210 template(java_lang_IndexOutOfBoundsException, "java/lang/IndexOutOfBoundsException") \ 211 template(java_lang_InstantiationException, "java/lang/InstantiationException") \ 212 template(java_lang_InstantiationError, "java/lang/InstantiationError") \ 213 template(java_lang_InterruptedException, "java/lang/InterruptedException") \ 214 template(java_lang_BootstrapMethodError, "java/lang/BootstrapMethodError") \ 215 template(java_lang_LinkageError, "java/lang/LinkageError") \ 216 template(java_lang_NegativeArraySizeException, "java/lang/NegativeArraySizeException") \ 217 template(java_lang_NoSuchMethodException, "java/lang/NoSuchMethodException") \ 218 template(java_lang_NullPointerException, "java/lang/NullPointerException") \ 219 template(java_lang_StringIndexOutOfBoundsException, "java/lang/StringIndexOutOfBoundsException")\ 220 template(java_lang_UnsupportedOperationException, "java/lang/UnsupportedOperationException") \ 221 template(java_lang_InvalidClassException, "java/lang/InvalidClassException") \ 222 template(java_lang_reflect_InvocationTargetException, "java/lang/reflect/InvocationTargetException") \ 223 template(java_lang_Exception, "java/lang/Exception") \ 224 template(java_lang_RuntimeException, "java/lang/RuntimeException") \ 225 template(java_io_IOException, "java/io/IOException") \ 226 \ 227 /* error klasses: at least all errors thrown by the VM have entries here */ \ 228 template(java_lang_AbstractMethodError, "java/lang/AbstractMethodError") \ 229 template(java_lang_ClassCircularityError, "java/lang/ClassCircularityError") \ 230 template(java_lang_ClassFormatError, "java/lang/ClassFormatError") \ 231 template(java_lang_UnsupportedClassVersionError, "java/lang/UnsupportedClassVersionError") \ 232 template(java_lang_Error, "java/lang/Error") \ 233 template(java_lang_ExceptionInInitializerError, "java/lang/ExceptionInInitializerError") \ 234 template(java_lang_IllegalAccessError, "java/lang/IllegalAccessError") \ 235 template(java_lang_IncompatibleClassChangeError, "java/lang/IncompatibleClassChangeError") \ 236 template(java_lang_InternalError, "java/lang/InternalError") \ 237 template(java_lang_NoClassDefFoundError, "java/lang/NoClassDefFoundError") \ 238 template(java_lang_NoSuchFieldError, "java/lang/NoSuchFieldError") \ 239 template(java_lang_NoSuchMethodError, "java/lang/NoSuchMethodError") \ 240 template(java_lang_OutOfMemoryError, "java/lang/OutOfMemoryError") \ 241 template(java_lang_UnsatisfiedLinkError, "java/lang/UnsatisfiedLinkError") \ 242 template(java_lang_VerifyError, "java/lang/VerifyError") \ 243 template(java_lang_SecurityException, "java/lang/SecurityException") \ 244 template(java_lang_VirtualMachineError, "java/lang/VirtualMachineError") \ 245 template(java_lang_StackOverflowError, "java/lang/StackOverflowError") \ 246 template(java_lang_StackTraceElement, "java/lang/StackTraceElement") \ 247 \ 248 /* Concurrency support */ \ 249 template(java_util_concurrent_locks_AbstractOwnableSynchronizer, "java/util/concurrent/locks/AbstractOwnableSynchronizer") \ 250 template(java_util_concurrent_atomic_AtomicIntegerFieldUpdater_Impl, "java/util/concurrent/atomic/AtomicIntegerFieldUpdater$AtomicIntegerFieldUpdaterImpl") \ 251 template(java_util_concurrent_atomic_AtomicLongFieldUpdater_CASUpdater, "java/util/concurrent/atomic/AtomicLongFieldUpdater$CASUpdater") \ 252 template(java_util_concurrent_atomic_AtomicLongFieldUpdater_LockedUpdater, "java/util/concurrent/atomic/AtomicLongFieldUpdater$LockedUpdater") \ 253 template(java_util_concurrent_atomic_AtomicReferenceFieldUpdater_Impl, "java/util/concurrent/atomic/AtomicReferenceFieldUpdater$AtomicReferenceFieldUpdaterImpl") \ 254 template(jdk_internal_vm_annotation_Contended_signature, "Ljdk/internal/vm/annotation/Contended;") \ 255 template(jdk_internal_vm_annotation_ReservedStackAccess_signature, "Ljdk/internal/vm/annotation/ReservedStackAccess;") \ 256 template(jdk_internal_ValueBased_signature, "Ljdk/internal/ValueBased;") \ 257 \ 258 /* class symbols needed by intrinsics */ \ 259 VM_INTRINSICS_DO(VM_INTRINSIC_IGNORE, template, VM_SYMBOL_IGNORE, VM_SYMBOL_IGNORE, VM_ALIAS_IGNORE) \ 260 \ 261 /* Support for reflection based on dynamic bytecode generation (JDK 1.4 and above) */ \ 262 \ 263 template(jdk_internal_reflect, "jdk/internal/reflect") \ 264 template(reflect_MethodAccessorImpl, "jdk/internal/reflect/MethodAccessorImpl") \ 265 template(reflect_DelegatingClassLoader, "jdk/internal/reflect/DelegatingClassLoader") \ 266 template(reflect_Reflection, "jdk/internal/reflect/Reflection") \ 267 template(reflect_CallerSensitive, "jdk/internal/reflect/CallerSensitive") \ 268 template(reflect_CallerSensitive_signature, "Ljdk/internal/reflect/CallerSensitive;") \ 269 template(reflect_DirectConstructorHandleAccessor_NativeAccessor, "jdk/internal/reflect/DirectConstructorHandleAccessor$NativeAccessor") \ 270 template(reflect_SerializationConstructorAccessorImpl, "jdk/internal/reflect/SerializationConstructorAccessorImpl") \ 271 template(clazz_name, "clazz") \ 272 template(exceptionTypes_name, "exceptionTypes") \ 273 template(modifiers_name, "modifiers") \ 274 template(invokeBasic_name, "invokeBasic") \ 275 template(linkToVirtual_name, "linkToVirtual") \ 276 template(linkToStatic_name, "linkToStatic") \ 277 template(linkToSpecial_name, "linkToSpecial") \ 278 template(linkToInterface_name, "linkToInterface") \ 279 template(linkToNative_name, "linkToNative") \ 280 template(compiledLambdaForm_name, "<compiledLambdaForm>") /*fake name*/ \ 281 template(star_name, "*") /*not really a name*/ \ 282 template(invoke_name, "invoke") \ 283 template(parameterTypes_name, "parameterTypes") \ 284 template(returnType_name, "returnType") \ 285 template(signature_name, "signature") \ 286 template(slot_name, "slot") \ 287 template(trusted_final_name, "trustedFinal") \ 288 template(blackhole_name, "<blackhole>") /*fake name*/ \ 289 \ 290 /* Support for annotations (JDK 1.5 and above) */ \ 291 \ 292 template(annotations_name, "annotations") \ 293 template(index_name, "index") \ 294 template(executable_name, "executable") \ 295 template(parameter_annotations_name, "parameterAnnotations") \ 296 template(annotation_default_name, "annotationDefault") \ 297 template(reflect_ConstantPool, "jdk/internal/reflect/ConstantPool") \ 298 template(base_name, "base") \ 299 /* Type Annotations (JDK 8 and above) */ \ 300 template(type_annotations_name, "typeAnnotations") \ 301 \ 302 /* Intrinsic Annotation (JDK 9 and above) */ \ 303 template(jdk_internal_vm_annotation_DontInline_signature, "Ljdk/internal/vm/annotation/DontInline;") \ 304 template(jdk_internal_vm_annotation_ForceInline_signature, "Ljdk/internal/vm/annotation/ForceInline;") \ 305 template(jdk_internal_vm_annotation_Hidden_signature, "Ljdk/internal/vm/annotation/Hidden;") \ 306 template(jdk_internal_misc_Scoped_signature, "Ljdk/internal/misc/ScopedMemoryAccess$Scoped;") \ 307 template(jdk_internal_vm_annotation_IntrinsicCandidate_signature, "Ljdk/internal/vm/annotation/IntrinsicCandidate;") \ 308 template(jdk_internal_vm_annotation_Stable_signature, "Ljdk/internal/vm/annotation/Stable;") \ 309 \ 310 template(jdk_internal_vm_annotation_ChangesCurrentThread_signature, "Ljdk/internal/vm/annotation/ChangesCurrentThread;") \ 311 template(jdk_internal_vm_annotation_JvmtiMountTransition_signature, "Ljdk/internal/vm/annotation/JvmtiMountTransition;") \ 312 \ 313 /* Support for JSR 292 & invokedynamic (JDK 1.7 and above) */ \ 314 template(java_lang_invoke_CallSite, "java/lang/invoke/CallSite") \ 315 template(java_lang_invoke_ConstantCallSite, "java/lang/invoke/ConstantCallSite") \ 316 template(java_lang_invoke_DirectMethodHandle, "java/lang/invoke/DirectMethodHandle") \ 317 template(java_lang_invoke_MutableCallSite, "java/lang/invoke/MutableCallSite") \ 318 template(java_lang_invoke_VolatileCallSite, "java/lang/invoke/VolatileCallSite") \ 319 template(java_lang_invoke_MethodHandle, "java/lang/invoke/MethodHandle") \ 320 template(java_lang_invoke_VarHandle, "java/lang/invoke/VarHandle") \ 321 template(java_lang_invoke_MethodType, "java/lang/invoke/MethodType") \ 322 template(java_lang_invoke_MethodType_signature, "Ljava/lang/invoke/MethodType;") \ 323 template(java_lang_invoke_ResolvedMethodName_signature, "Ljava/lang/invoke/ResolvedMethodName;")\ 324 template(java_lang_invoke_MemberName_signature, "Ljava/lang/invoke/MemberName;") \ 325 template(java_lang_invoke_LambdaForm_signature, "Ljava/lang/invoke/LambdaForm;") \ 326 template(java_lang_invoke_MethodHandle_signature, "Ljava/lang/invoke/MethodHandle;") \ 327 /* internal classes known only to the JVM: */ \ 328 template(java_lang_invoke_MemberName, "java/lang/invoke/MemberName") \ 329 template(java_lang_invoke_ResolvedMethodName, "java/lang/invoke/ResolvedMethodName") \ 330 template(java_lang_invoke_MethodHandleNatives, "java/lang/invoke/MethodHandleNatives") \ 331 template(java_lang_invoke_MethodHandleNatives_CallSiteContext, "java/lang/invoke/MethodHandleNatives$CallSiteContext") \ 332 template(java_lang_invoke_LambdaForm, "java/lang/invoke/LambdaForm") \ 333 template(java_lang_invoke_InjectedProfile_signature, "Ljava/lang/invoke/InjectedProfile;") \ 334 template(java_lang_invoke_LambdaForm_Compiled_signature, "Ljava/lang/invoke/LambdaForm$Compiled;") \ 335 template(java_lang_invoke_MethodHandleNatives_CallSiteContext_signature, "Ljava/lang/invoke/MethodHandleNatives$CallSiteContext;") \ 336 /* internal up-calls made only by the JVM, via class sun.invoke.MethodHandleNatives: */ \ 337 template(findMethodHandleType_name, "findMethodHandleType") \ 338 template(findMethodHandleType_signature, "(Ljava/lang/Class;[Ljava/lang/Class;)Ljava/lang/invoke/MethodType;") \ 339 template(invokeExact_name, "invokeExact") \ 340 template(linkMethodHandleConstant_name, "linkMethodHandleConstant") \ 341 template(asFixedArity_name, "asFixedArity") \ 342 template(asFixedArity_signature, "()Ljava/lang/invoke/MethodHandle;") \ 343 template(linkMethodHandleConstant_signature, "(Ljava/lang/Class;ILjava/lang/Class;Ljava/lang/String;Ljava/lang/Object;)Ljava/lang/invoke/MethodHandle;") \ 344 template(linkMethod_name, "linkMethod") \ 345 template(linkMethod_signature, "(Ljava/lang/Class;ILjava/lang/Class;Ljava/lang/String;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/invoke/MemberName;") \ 346 template(linkDynamicConstant_name, "linkDynamicConstant") \ 347 template(linkDynamicConstant_signature, "(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;") \ 348 template(linkCallSite_name, "linkCallSite") \ 349 template(linkCallSite_signature, "(Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/invoke/MemberName;") \ 350 NOT_LP64( do_alias(intptr_signature, int_signature) ) \ 351 LP64_ONLY( do_alias(intptr_signature, long_signature) ) \ 352 /* Foreign API Support */ \ 353 template(jdk_internal_foreign_abi_NativeEntryPoint, "jdk/internal/foreign/abi/NativeEntryPoint") \ 354 template(jdk_internal_foreign_abi_ABIDescriptor, "jdk/internal/foreign/abi/ABIDescriptor") \ 355 template(jdk_internal_foreign_abi_VMStorage, "jdk/internal/foreign/abi/VMStorage") \ 356 template(jdk_internal_foreign_abi_VMStorage_signature, "Ljdk/internal/foreign/abi/VMStorage;") \ 357 template(jdk_internal_foreign_abi_VMStorage_array_signature, "[Ljdk/internal/foreign/abi/VMStorage;") \ 358 template(jdk_internal_foreign_abi_VMStorage_array_array_signature, "[[Ljdk/internal/foreign/abi/VMStorage;") \ 359 template(jdk_internal_foreign_abi_CallConv, "jdk/internal/foreign/abi/UpcallLinker$CallRegs") \ 360 \ 361 /* Support for JVMCI */ \ 362 JVMCI_VM_SYMBOLS_DO(template, do_alias) \ 363 \ 364 template(java_lang_ClassFrameInfo, "java/lang/ClassFrameInfo") \ 365 template(java_lang_StackWalker, "java/lang/StackWalker") \ 366 template(java_lang_StackFrameInfo, "java/lang/StackFrameInfo") \ 367 template(java_lang_LiveStackFrameInfo, "java/lang/LiveStackFrameInfo") \ 368 template(java_lang_StackStreamFactory_AbstractStackWalker, "java/lang/StackStreamFactory$AbstractStackWalker") \ 369 template(doStackWalk_signature, "(JIIII)Ljava/lang/Object;") \ 370 template(asPrimitive_name, "asPrimitive") \ 371 template(asPrimitive_int_signature, "(I)Ljava/lang/LiveStackFrame$PrimitiveSlot;") \ 372 template(asPrimitive_long_signature, "(J)Ljava/lang/LiveStackFrame$PrimitiveSlot;") \ 373 \ 374 /* common method and field names */ \ 375 template(object_initializer_name, "<init>") \ 376 template(class_initializer_name, "<clinit>") \ 377 template(println_name, "println") \ 378 template(printStackTrace_name, "printStackTrace") \ 379 template(getStackTrace_name, "getStackTrace") \ 380 template(main_name, "main") \ 381 template(name_name, "name") \ 382 template(priority_name, "priority") \ 383 template(group_name, "group") \ 384 template(daemon_name, "daemon") \ 385 template(run_method_name, "run") \ 386 template(runWith_method_name, "runWith") \ 387 template(interrupt_method_name, "interrupt") \ 388 template(exit_method_name, "exit") \ 389 template(remove_method_name, "remove") \ 390 template(parent_name, "parent") \ 391 template(maxPriority_name, "maxPriority") \ 392 template(shutdown_name, "shutdown") \ 393 template(finalize_method_name, "finalize") \ 394 template(reference_discovered_name, "discovered") \ 395 template(run_finalization_name, "runFinalization") \ 396 template(dispatchUncaughtException_name, "dispatchUncaughtException") \ 397 template(loadClass_name, "loadClass") \ 398 template(notifyJvmtiStart_name, "notifyJvmtiStart") \ 399 template(notifyJvmtiEnd_name, "notifyJvmtiEnd") \ 400 template(notifyJvmtiMount_name, "notifyJvmtiMount") \ 401 template(notifyJvmtiUnmount_name, "notifyJvmtiUnmount") \ 402 template(notifyJvmtiHideFrames_name, "notifyJvmtiHideFrames") \ 403 template(notifyJvmtiDisableSuspend_name, "notifyJvmtiDisableSuspend") \ 404 template(doYield_name, "doYield") \ 405 template(enter_name, "enter") \ 406 template(enterSpecial_name, "enterSpecial") \ 407 template(onContinue_name, "onContinue0") \ 408 template(scope_name, "scope") \ 409 template(yieldInfo_name, "yieldInfo") \ 410 template(pin_name, "pin") \ 411 template(unpin_name, "unpin") \ 412 template(tail_name, "tail") \ 413 template(size_name, "size") \ 414 template(bottom_name, "bottom") \ 415 template(mode_name, "mode") \ 416 template(numFrames_name, "numFrames") \ 417 template(stack_name, "stack") \ 418 template(maxSize_name, "maxSize") \ 419 template(reset_name, "reset") \ 420 template(done_name, "done") \ 421 template(mounted_name, "mounted") \ 422 template(jfrTraceId_name, "jfrTraceId") \ 423 template(fp_name, "fp") \ 424 template(sp_name, "sp") \ 425 template(pc_name, "pc") \ 426 template(cs_name, "cs") \ 427 template(get_name, "get") \ 428 template(refersTo0_name, "refersTo0") \ 429 template(put_name, "put") \ 430 template(type_name, "type") \ 431 template(findNative_name, "findNative") \ 432 template(getFromClass_name, "getFromClass") \ 433 template(dispatch_name, "dispatch") \ 434 template(bootLoader_name, "bootLoader") \ 435 template(getPlatformClassLoader_name, "getPlatformClassLoader") \ 436 template(getSystemClassLoader_name, "getSystemClassLoader") \ 437 template(fillInStackTrace_name, "fillInStackTrace") \ 438 template(getCause_name, "getCause") \ 439 template(initCause_name, "initCause") \ 440 template(getProperty_name, "getProperty") \ 441 template(context_name, "context") \ 442 template(contextClassLoader_name, "contextClassLoader") \ 443 template(inheritedAccessControlContext_name, "inheritedAccessControlContext") \ 444 template(getClassContext_name, "getClassContext") \ 445 template(wait_name, "wait0") \ 446 template(checkPackageAccess_name, "checkPackageAccess") \ 447 template(forName_name, "forName") \ 448 template(forName0_name, "forName0") \ 449 template(isJavaIdentifierStart_name, "isJavaIdentifierStart") \ 450 template(isJavaIdentifierPart_name, "isJavaIdentifierPart") \ 451 template(cache_field_name, "cache") \ 452 template(value_name, "value") \ 453 template(compact_strings_name, "COMPACT_STRINGS") \ 454 template(numberOfLeadingZeros_name, "numberOfLeadingZeros") \ 455 template(numberOfTrailingZeros_name, "numberOfTrailingZeros") \ 456 template(bitCount_name, "bitCount") \ 457 template(profile_name, "profile") \ 458 template(equals_name, "equals") \ 459 template(length_name, "length") \ 460 template(target_name, "target") \ 461 template(toString_name, "toString") \ 462 template(values_name, "values") \ 463 template(receiver_name, "receiver") \ 464 template(vmtarget_name, "vmtarget") \ 465 template(vmholder_name, "vmholder") \ 466 template(method_name, "method") \ 467 template(vmindex_name, "vmindex") \ 468 template(flags_name, "flags") \ 469 template(basicType_name, "basicType") \ 470 template(append_name, "append") \ 471 template(klass_name, "klass") \ 472 template(array_klass_name, "array_klass") \ 473 template(mid_name, "mid") \ 474 template(cpref_name, "cpref") \ 475 template(version_name, "version") \ 476 template(methodName_name, "methodName") \ 477 template(fileName_name, "fileName") \ 478 template(lineNumber_name, "lineNumber") \ 479 template(oop_size_name, "oop_size") \ 480 template(static_oop_field_count_name, "static_oop_field_count") \ 481 template(protection_domain_name, "protection_domain") \ 482 template(signers_name, "signers_name") \ 483 template(source_file_name, "source_file") \ 484 template(loader_data_name, "loader_data") \ 485 template(cont_name, "cont") \ 486 template(vmdependencies_name, "vmdependencies") \ 487 template(last_cleanup_name, "last_cleanup") \ 488 template(loader_name, "loader") \ 489 template(getModule_name, "getModule") \ 490 template(input_stream_void_signature, "(Ljava/io/InputStream;)V") \ 491 template(input_stream_signature, "Ljava/io/InputStream;") \ 492 template(print_stream_signature, "Ljava/io/PrintStream;") \ 493 template(security_manager_signature, "Ljava/lang/SecurityManager;") \ 494 template(defineOrCheckPackage_name, "defineOrCheckPackage") \ 495 template(defineOrCheckPackage_signature, "(Ljava/lang/String;Ljava/util/jar/Manifest;Ljava/net/URL;)Ljava/lang/Package;") \ 496 template(getProtectionDomain_name, "getProtectionDomain") \ 497 template(getProtectionDomain_signature, "(Ljava/security/CodeSource;)Ljava/security/ProtectionDomain;") \ 498 template(java_lang_Integer_array_signature, "[Ljava/lang/Integer;") \ 499 template(java_lang_Long_array_signature, "[Ljava/lang/Long;") \ 500 template(java_lang_Character_array_signature, "[Ljava/lang/Character;") \ 501 template(java_lang_Short_array_signature, "[Ljava/lang/Short;") \ 502 template(java_lang_Byte_array_signature, "[Ljava/lang/Byte;") \ 503 template(java_lang_Boolean_signature, "Ljava/lang/Boolean;") \ 504 template(url_code_signer_array_void_signature, "(Ljava/net/URL;[Ljava/security/CodeSigner;)V") \ 505 template(jvmti_thread_state_name, "jvmti_thread_state") \ 506 template(jvmti_VTMS_transition_disable_count_name, "jvmti_VTMS_transition_disable_count") \ 507 template(jvmti_is_in_VTMS_transition_name, "jvmti_is_in_VTMS_transition") \ 508 template(module_entry_name, "module_entry") \ 509 template(resolved_references_name, "<resolved_references>") \ 510 template(init_lock_name, "<init_lock>") \ 511 template(address_size_name, "ADDRESS_SIZE0") \ 512 template(page_size_name, "PAGE_SIZE") \ 513 template(big_endian_name, "BIG_ENDIAN") \ 514 template(use_unaligned_access_name, "UNALIGNED_ACCESS") \ 515 template(data_cache_line_flush_size_name, "DATA_CACHE_LINE_FLUSH_SIZE") \ 516 template(during_unsafe_access_name, "during_unsafe_access") \ 517 template(checkIndex_name, "checkIndex") \ 518 template(jfr_epoch_name, "jfr_epoch") \ 519 template(maxThawingSize_name, "maxThawingSize") \ 520 \ 521 /* name symbols needed by intrinsics */ \ 522 VM_INTRINSICS_DO(VM_INTRINSIC_IGNORE, VM_SYMBOL_IGNORE, template, VM_SYMBOL_IGNORE, VM_ALIAS_IGNORE) \ 523 \ 524 /* common signatures names */ \ 525 template(void_method_signature, "()V") \ 526 template(void_boolean_signature, "()Z") \ 527 template(void_byte_signature, "()B") \ 528 template(void_char_signature, "()C") \ 529 template(void_short_signature, "()S") \ 530 template(void_int_signature, "()I") \ 531 template(void_long_signature, "()J") \ 532 template(void_float_signature, "()F") \ 533 template(void_double_signature, "()D") \ 534 template(bool_void_signature, "(Z)V") \ 535 template(int_void_signature, "(I)V") \ 536 template(int_int_signature, "(I)I") \ 537 template(char_char_signature, "(C)C") \ 538 template(short_short_signature, "(S)S") \ 539 template(int_bool_signature, "(I)Z") \ 540 template(float_bool_signature, "(F)Z") \ 541 template(double_bool_signature, "(D)Z") \ 542 template(float_int_signature, "(F)I") \ 543 template(double_long_signature, "(D)J") \ 544 template(double_double_signature, "(D)D") \ 545 template(float_float_signature, "(F)F") \ 546 template(int_float_signature, "(I)F") \ 547 template(long_int_signature, "(J)I") \ 548 template(long_long_signature, "(J)J") \ 549 template(long_double_signature, "(J)D") \ 550 template(long_void_signature, "(J)V") \ 551 template(byte_signature, "B") \ 552 template(char_signature, "C") \ 553 template(double_signature, "D") \ 554 template(float_signature, "F") \ 555 template(int_signature, "I") \ 556 template(long_signature, "J") \ 557 template(short_signature, "S") \ 558 template(bool_signature, "Z") \ 559 template(void_signature, "V") \ 560 template(bool_array_signature, "[Z") \ 561 template(byte_array_signature, "[B") \ 562 template(char_array_signature, "[C") \ 563 template(int_array_signature, "[I") \ 564 template(runnable_signature, "Ljava/lang/Runnable;") \ 565 template(continuation_signature, "Ljdk/internal/vm/Continuation;") \ 566 template(continuationscope_signature, "Ljdk/internal/vm/ContinuationScope;") \ 567 template(stackchunk_signature, "Ljdk/internal/vm/StackChunk;") \ 568 template(object_void_signature, "(Ljava/lang/Object;)V") \ 569 template(object_int_signature, "(Ljava/lang/Object;)I") \ 570 template(long_object_long_signature, "(JLjava/lang/Object;)J") \ 571 template(object_boolean_signature, "(Ljava/lang/Object;)Z") \ 572 template(object_object_signature, "(Ljava/lang/Object;)Ljava/lang/Object;") \ 573 template(string_void_signature, "(Ljava/lang/String;)V") \ 574 template(string_bool_byte_array_signature, "(Ljava/lang/String;Z)[B") \ 575 template(throwable_signature, "Ljava/lang/Throwable;") \ 576 template(throwable_void_signature, "(Ljava/lang/Throwable;)V") \ 577 template(void_throwable_signature, "()Ljava/lang/Throwable;") \ 578 template(class_void_signature, "(Ljava/lang/Class;)V") \ 579 template(class_int_signature, "(Ljava/lang/Class;)I") \ 580 template(class_long_signature, "(Ljava/lang/Class;)J") \ 581 template(class_boolean_signature, "(Ljava/lang/Class;)Z") \ 582 template(throwable_throwable_signature, "(Ljava/lang/Throwable;)Ljava/lang/Throwable;") \ 583 template(thread_void_signature, "(Ljava/lang/Thread;)V") \ 584 template(runnable_void_signature, "(Ljava/lang/Runnable;)V") \ 585 template(threadgroup_runnable_void_signature, "(Ljava/lang/ThreadGroup;Ljava/lang/Runnable;)V") \ 586 template(threadgroup_string_void_signature, "(Ljava/lang/ThreadGroup;Ljava/lang/String;)V") \ 587 template(void_threadgroup_array_signature, "()[Ljava/lang/ThreadGroup;") \ 588 template(string_class_signature, "(Ljava/lang/String;)Ljava/lang/Class;") \ 589 template(string_boolean_class_signature, "(Ljava/lang/String;Z)Ljava/lang/Class;") \ 590 template(object_object_object_signature, "(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;") \ 591 template(string_string_signature, "(Ljava/lang/String;)Ljava/lang/String;") \ 592 template(classloader_class_string_string_long_signature, "(Ljava/lang/ClassLoader;Ljava/lang/Class;Ljava/lang/String;Ljava/lang/String;)J") \ 593 template(byte_array_void_signature, "([B)V") \ 594 template(long_long_void_signature, "(JJ)V") \ 595 template(void_byte_array_signature, "()[B") \ 596 template(void_classloader_signature, "()Ljava/lang/ClassLoader;") \ 597 template(void_BuiltinClassLoader_signature, "()Ljdk/internal/loader/BuiltinClassLoader;") \ 598 template(void_object_signature, "()Ljava/lang/Object;") \ 599 template(void_class_signature, "()Ljava/lang/Class;") \ 600 template(void_class_array_signature, "()[Ljava/lang/Class;") \ 601 template(void_string_signature, "()Ljava/lang/String;") \ 602 template(object_array_object_signature, "([Ljava/lang/Object;)Ljava/lang/Object;") \ 603 template(object_object_array_object_signature, "(Ljava/lang/Object;[Ljava/lang/Object;)Ljava/lang/Object;")\ 604 template(protectiondomain_signature, "[Ljava/security/ProtectionDomain;") \ 605 template(accesscontrolcontext_signature, "Ljava/security/AccessControlContext;") \ 606 template(class_protectiondomain_signature, "(Ljava/lang/Class;Ljava/security/ProtectionDomain;)V") \ 607 template(thread_signature, "Ljava/lang/Thread;") \ 608 template(thread_fieldholder_signature, "Ljava/lang/Thread$FieldHolder;") \ 609 template(threadgroup_signature, "Ljava/lang/ThreadGroup;") \ 610 template(threadgroup_array_signature, "[Ljava/lang/ThreadGroup;") \ 611 template(class_array_signature, "[Ljava/lang/Class;") \ 612 template(classloader_signature, "Ljava/lang/ClassLoader;") \ 613 template(object_signature, "Ljava/lang/Object;") \ 614 template(object_array_signature, "[Ljava/lang/Object;") \ 615 template(class_signature, "Ljava/lang/Class;") \ 616 template(string_signature, "Ljava/lang/String;") \ 617 template(string_array_signature, "[Ljava/lang/String;") \ 618 template(reference_signature, "Ljava/lang/ref/Reference;") \ 619 template(referencequeue_signature, "Ljava/lang/ref/ReferenceQueue;") \ 620 template(executable_signature, "Ljava/lang/reflect/Executable;") \ 621 template(module_signature, "Ljava/lang/Module;") \ 622 template(concurrenthashmap_signature, "Ljava/util/concurrent/ConcurrentHashMap;") \ 623 template(String_StringBuilder_signature, "(Ljava/lang/String;)Ljava/lang/StringBuilder;") \ 624 template(int_StringBuilder_signature, "(I)Ljava/lang/StringBuilder;") \ 625 template(char_StringBuilder_signature, "(C)Ljava/lang/StringBuilder;") \ 626 template(String_StringBuffer_signature, "(Ljava/lang/String;)Ljava/lang/StringBuffer;") \ 627 template(int_StringBuffer_signature, "(I)Ljava/lang/StringBuffer;") \ 628 template(char_StringBuffer_signature, "(C)Ljava/lang/StringBuffer;") \ 629 template(int_String_signature, "(I)Ljava/lang/String;") \ 630 template(boolean_boolean_int_signature, "(ZZ)I") \ 631 template(big_integer_shift_worker_signature, "([I[IIII)V") \ 632 template(reflect_method_signature, "Ljava/lang/reflect/Method;") \ 633 template(getStackTrace_signature, "()[Ljava/lang/StackTraceElement;") \ 634 \ 635 /* signature symbols needed by intrinsics */ \ 636 VM_INTRINSICS_DO(VM_INTRINSIC_IGNORE, VM_SYMBOL_IGNORE, VM_SYMBOL_IGNORE, template, VM_ALIAS_IGNORE) \ 637 \ 638 /* symbol aliases needed by intrinsics */ \ 639 VM_INTRINSICS_DO(VM_INTRINSIC_IGNORE, VM_SYMBOL_IGNORE, VM_SYMBOL_IGNORE, VM_SYMBOL_IGNORE, do_alias) \ 640 \ 641 /* returned by the C1 compiler in case there's not enough memory to allocate a new symbol*/ \ 642 template(dummy_symbol, "illegal symbol") \ 643 \ 644 /* used by ClassFormatError when class name is not known yet */ \ 645 template(unknown_class_name, "<Unknown>") \ 646 \ 647 /* JVM monitoring and management support */ \ 648 template(java_lang_StackTraceElement_array, "[Ljava/lang/StackTraceElement;") \ 649 template(java_lang_management_MemoryUsage, "java/lang/management/MemoryUsage") \ 650 template(java_lang_management_ThreadInfo, "java/lang/management/ThreadInfo") \ 651 template(jdk_internal_agent_Agent, "jdk/internal/agent/Agent") \ 652 template(sun_management_Sensor, "sun/management/Sensor") \ 653 template(sun_management_ManagementFactoryHelper, "sun/management/ManagementFactoryHelper") \ 654 template(com_sun_management_internal_DiagnosticCommandImpl, "com/sun/management/internal/DiagnosticCommandImpl") \ 655 template(com_sun_management_internal_GarbageCollectorExtImpl,"com/sun/management/internal/GarbageCollectorExtImpl") \ 656 template(getDiagnosticCommandMBean_name, "getDiagnosticCommandMBean") \ 657 template(getDiagnosticCommandMBean_signature, "()Lcom/sun/management/DiagnosticCommandMBean;") \ 658 template(getGcInfoBuilder_name, "getGcInfoBuilder") \ 659 template(getGcInfoBuilder_signature, "()Lcom/sun/management/internal/GcInfoBuilder;") \ 660 template(com_sun_management_GcInfo, "com/sun/management/GcInfo") \ 661 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") \ 662 template(createGCNotification_name, "createGCNotification") \ 663 template(createGCNotification_signature, "(JLjava/lang/String;Ljava/lang/String;Ljava/lang/String;Lcom/sun/management/GcInfo;)V") \ 664 template(createDiagnosticFrameworkNotification_name, "createDiagnosticFrameworkNotification") \ 665 template(trigger_name, "trigger") \ 666 template(clear_name, "clear") \ 667 template(trigger_method_signature, "(ILjava/lang/management/MemoryUsage;)V") \ 668 template(startAgent_name, "startAgent") \ 669 template(startRemoteAgent_name, "startRemoteManagementAgent") \ 670 template(startLocalAgent_name, "startLocalManagementAgent") \ 671 template(stopRemoteAgent_name, "stopRemoteManagementAgent") \ 672 template(getAgentStatus_name, "getManagementAgentStatus") \ 673 template(java_lang_management_ThreadInfo_constructor_signature, "(Ljava/lang/Thread;ILjava/lang/Object;Ljava/lang/Thread;JJJJ[Ljava/lang/StackTraceElement;)V") \ 674 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") \ 675 template(long_long_long_long_void_signature, "(JJJJ)V") \ 676 template(finalizer_histogram_klass, "java/lang/ref/FinalizerHistogram") \ 677 template(void_finalizer_histogram_entry_array_signature, "()[Ljava/lang/ref/FinalizerHistogram$Entry;") \ 678 template(get_finalizer_histogram_name, "getFinalizerHistogram") \ 679 template(finalizer_histogram_entry_name_field, "className") \ 680 template(finalizer_histogram_entry_count_field, "instanceCount") \ 681 \ 682 template(java_lang_management_MemoryPoolMXBean, "java/lang/management/MemoryPoolMXBean") \ 683 template(java_lang_management_MemoryManagerMXBean, "java/lang/management/MemoryManagerMXBean") \ 684 template(java_lang_management_GarbageCollectorMXBean,"java/lang/management/GarbageCollectorMXBean") \ 685 template(createMemoryPool_name, "createMemoryPool") \ 686 template(createMemoryManager_name, "createMemoryManager") \ 687 template(createGarbageCollector_name, "createGarbageCollector") \ 688 template(createMemoryPool_signature, "(Ljava/lang/String;ZJJ)Ljava/lang/management/MemoryPoolMXBean;") \ 689 template(createMemoryManager_signature, "(Ljava/lang/String;)Ljava/lang/management/MemoryManagerMXBean;") \ 690 template(createGarbageCollector_signature, "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/management/GarbageCollectorMXBean;") \ 691 \ 692 /* JVMTI/java.lang.instrument support and VM Attach mechanism */ \ 693 template(jdk_internal_module_Modules, "jdk/internal/module/Modules") \ 694 template(jdk_internal_vm_VMSupport, "jdk/internal/vm/VMSupport") \ 695 template(addReads_name, "addReads") \ 696 template(addReads_signature, "(Ljava/lang/Module;Ljava/lang/Module;)V") \ 697 template(addExports_name, "addExports") \ 698 template(addOpens_name, "addOpens") \ 699 template(addExports_signature, "(Ljava/lang/Module;Ljava/lang/String;Ljava/lang/Module;)V") \ 700 template(addUses_name, "addUses") \ 701 template(addUses_signature, "(Ljava/lang/Module;Ljava/lang/Class;)V") \ 702 template(addProvides_name, "addProvides") \ 703 template(addProvides_signature, "(Ljava/lang/Module;Ljava/lang/Class;Ljava/lang/Class;)V") \ 704 template(loadModule_name, "loadModule") \ 705 template(loadModule_signature, "(Ljava/lang/String;)Ljava/lang/Module;") \ 706 template(transformedByAgent_name, "transformedByAgent") \ 707 template(transformedByAgent_signature, "(Ljava/lang/Module;)V") \ 708 template(appendToClassPathForInstrumentation_name, "appendToClassPathForInstrumentation") \ 709 do_alias(appendToClassPathForInstrumentation_signature, string_void_signature) \ 710 template(serializePropertiesToByteArray_name, "serializePropertiesToByteArray") \ 711 template(serializeAgentPropertiesToByteArray_name, "serializeAgentPropertiesToByteArray") \ 712 template(encodeThrowable_name, "encodeThrowable") \ 713 template(encodeThrowable_signature, "(Ljava/lang/Throwable;JI)I") \ 714 template(decodeAndThrowThrowable_name, "decodeAndThrowThrowable") \ 715 template(encodeAnnotations_name, "encodeAnnotations") \ 716 template(encodeAnnotations_signature, "([BLjava/lang/Class;Ljdk/internal/reflect/ConstantPool;Z[Ljava/lang/Class;)[B")\ 717 template(decodeAndThrowThrowable_signature, "(IJZZ)V") \ 718 template(classRedefinedCount_name, "classRedefinedCount") \ 719 template(classLoader_name, "classLoader") \ 720 template(componentType_name, "componentType") \ 721 \ 722 /* forEachRemaining support */ \ 723 template(java_util_stream_StreamsRangeIntSpliterator, "java/util/stream/Streams$RangeIntSpliterator") \ 724 \ 725 /* jfr signatures */ \ 726 JFR_TEMPLATES(template) \ 727 \ 728 /* CDS */ \ 729 template(dumpSharedArchive, "dumpSharedArchive") \ 730 template(dumpSharedArchive_signature, "(ZLjava/lang/String;)Ljava/lang/String;") \ 731 template(generateLambdaFormHolderClasses, "generateLambdaFormHolderClasses") \ 732 template(generateLambdaFormHolderClasses_signature, "([Ljava/lang/String;)[Ljava/lang/Object;") \ 733 template(java_lang_Enum, "java/lang/Enum") \ 734 template(java_lang_invoke_Invokers_Holder, "java/lang/invoke/Invokers$Holder") \ 735 template(java_lang_invoke_DirectMethodHandle_Holder, "java/lang/invoke/DirectMethodHandle$Holder") \ 736 template(java_lang_invoke_LambdaForm_Holder, "java/lang/invoke/LambdaForm$Holder") \ 737 template(java_lang_invoke_DelegatingMethodHandle_Holder, "java/lang/invoke/DelegatingMethodHandle$Holder") \ 738 template(jdk_internal_loader_ClassLoaders, "jdk/internal/loader/ClassLoaders") \ 739 template(jdk_internal_misc_CDS, "jdk/internal/misc/CDS") \ 740 template(java_util_concurrent_ConcurrentHashMap, "java/util/concurrent/ConcurrentHashMap") \ 741 template(java_util_ArrayList, "java/util/ArrayList") \ 742 template(toFileURL_name, "toFileURL") \ 743 template(toFileURL_signature, "(Ljava/lang/String;)Ljava/net/URL;") \ 744 template(url_array_classloader_void_signature, "([Ljava/net/URL;Ljava/lang/ClassLoader;)V") \ 745 \ 746 /* Thread.dump_to_file jcmd */ \ 747 template(jdk_internal_vm_ThreadDumper, "jdk/internal/vm/ThreadDumper") \ 748 template(dumpThreads_name, "dumpThreads") \ 749 template(dumpThreadsToJson_name, "dumpThreadsToJson") \ 750 751 /*end*/ 752 753 // enum for figuring positions and size of Symbol::_vm_symbols[] 754 enum class vmSymbolID : int { 755 // [FIRST_SID ... LAST_SID] is the iteration range for the *valid* symbols. 756 // NO_SID is used to indicate an invalid symbol. Some implementation code 757 // *may* read _vm_symbols[NO_SID], so it must be a valid array index. 758 NO_SID = 0, // exclusive lower limit 759 760 #define VM_SYMBOL_ENUM(name, string) VM_SYMBOL_ENUM_NAME_(name), 761 VM_SYMBOLS_DO(VM_SYMBOL_ENUM, VM_ALIAS_IGNORE) 762 #undef VM_SYMBOL_ENUM 763 764 SID_LIMIT, // exclusive upper limit 765 766 #define VM_ALIAS_ENUM(name, def) VM_SYMBOL_ENUM_NAME_(name) = VM_SYMBOL_ENUM_NAME_(def), 767 VM_SYMBOLS_DO(VM_SYMBOL_IGNORE, VM_ALIAS_ENUM) 768 #undef VM_ALIAS_ENUM 769 770 FIRST_SID = NO_SID + 1, // inclusive lower limit 771 LAST_SID = SID_LIMIT - 1, // inclusive upper limit 772 }; 773 774 ENUMERATOR_RANGE(vmSymbolID, vmSymbolID::FIRST_SID, vmSymbolID::LAST_SID) 775 776 class vmSymbols: AllStatic { 777 friend class vmIntrinsics; 778 friend class VMStructs; 779 friend class JVMCIVMStructs; 780 781 static const int NO_SID = static_cast<int>(vmSymbolID::NO_SID); // exclusive lower limit 782 static const int FIRST_SID = static_cast<int>(vmSymbolID::FIRST_SID); // inclusive lower limit 783 static const int LAST_SID = static_cast<int>(vmSymbolID::FIRST_SID); // inclusive upper limit 784 static const int SID_LIMIT = static_cast<int>(vmSymbolID::SID_LIMIT); // exclusive upper limit 785 786 public: 787 static constexpr bool is_valid_id(int id) { 788 return (id >= FIRST_SID && id < SID_LIMIT); 789 } 790 static constexpr bool is_valid_id(vmSymbolID sid) { 791 return is_valid_id(static_cast<int>(sid)); 792 } 793 794 static constexpr vmSymbolID as_SID(int id) { 795 assert(is_valid_id(id), "must be"); 796 return static_cast<vmSymbolID>(id); 797 } 798 799 static constexpr int as_int(vmSymbolID sid) { 800 assert(is_valid_id(sid), "must be"); 801 return static_cast<int>(sid); 802 } 803 804 static constexpr int number_of_symbols() { 805 static_assert(NO_SID == 0, "must be a valid array index"); 806 static_assert(FIRST_SID == 1, "must not be the same as NO_SID"); 807 return SID_LIMIT; 808 } 809 810 enum { 811 log2_SID_LIMIT = 11 // checked by an assert at start-up 812 }; 813 814 private: 815 816 // Field signatures indexed by BasicType. 817 static Symbol* _type_signatures[T_VOID+1]; 818 819 public: 820 // Initialization 821 static void initialize(); 822 // Accessing 823 #define VM_SYMBOL_DECLARE(name, ignore) \ 824 static Symbol* name() { \ 825 return Symbol::_vm_symbols[static_cast<int>(VM_SYMBOL_ENUM_NAME(name))]; \ 826 } 827 VM_SYMBOLS_DO(VM_SYMBOL_DECLARE, VM_SYMBOL_DECLARE) 828 #undef VM_SYMBOL_DECLARE 829 830 // Sharing support 831 static void symbols_do(SymbolClosure* f); 832 static void metaspace_pointers_do(MetaspaceClosure *it); 833 static void serialize(SerializeClosure* soc); 834 835 static Symbol* type_signature(BasicType t) { 836 assert((uint)t < T_VOID+1, "range check"); 837 assert(_type_signatures[t] != nullptr, "domain check"); 838 return _type_signatures[t]; 839 } 840 841 static Symbol* symbol_at(vmSymbolID id) { 842 return Symbol::vm_symbol_at(id); 843 } 844 845 // Returns symbol's vmSymbolID if one is assigned, else vmSymbolID::NO_SID. 846 static vmSymbolID find_sid(const Symbol* symbol); 847 static vmSymbolID find_sid(const char* symbol_name); 848 849 #ifndef PRODUCT 850 // No need for this in the product: 851 static const char* name_for(vmSymbolID sid); 852 #endif //PRODUCT 853 }; 854 855 #endif // SHARE_CLASSFILE_VMSYMBOLS_HPP