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