< prev index next >

src/hotspot/share/classfile/vmClassMacros.hpp

Print this page

 33 // VM_CLASSES_DO iterates the classes that are directly referenced
 34 // by the VM, suhch as java.lang.Object and java.lang.String. These
 35 // classes are resolved at VM bootstrap, before any Java code is executed,
 36 // so no class loader is able to provide a different definition.
 37 //
 38 // Each VM class has a short klass name (like Object_klass),
 39 // and a vmSymbol name (like java_lang_Object). Both of these can
 40 // be used to find the vmClassID for this class. The following two
 41 // macros will evaluate to the same value:
 42 //
 43 //    VM_CLASS_ID(Object_klass)
 44 //    VM_CLASS_ID(java_lang_Object)
 45 //
 46 // The order of these definitions is significant: the classes are
 47 // resolved by vmClasses::resolve_all() in this order. Changing the
 48 // order may require careful restructuring of the VM start-up sequence.
 49 //
 50 #define VM_CLASSES_DO(do_klass)                                                                                 \
 51   /* well-known classes */                                                                                      \
 52   do_klass(Object_klass,                                java_lang_Object                                      ) \


 53   do_klass(String_klass,                                java_lang_String                                      ) \
 54   do_klass(Class_klass,                                 java_lang_Class                                       ) \
 55   do_klass(Cloneable_klass,                             java_lang_Cloneable                                   ) \
 56   do_klass(ClassLoader_klass,                           java_lang_ClassLoader                                 ) \
 57   do_klass(Serializable_klass,                          java_io_Serializable                                  ) \
 58   do_klass(System_klass,                                java_lang_System                                      ) \
 59   do_klass(Throwable_klass,                             java_lang_Throwable                                   ) \
 60   do_klass(Error_klass,                                 java_lang_Error                                       ) \
 61   do_klass(ThreadDeath_klass,                           java_lang_ThreadDeath                                 ) \
 62   do_klass(Exception_klass,                             java_lang_Exception                                   ) \
 63   do_klass(RuntimeException_klass,                      java_lang_RuntimeException                            ) \
 64   do_klass(SecurityManager_klass,                       java_lang_SecurityManager                             ) \
 65   do_klass(ProtectionDomain_klass,                      java_security_ProtectionDomain                        ) \
 66   do_klass(AccessControlContext_klass,                  java_security_AccessControlContext                    ) \
 67   do_klass(AccessController_klass,                      java_security_AccessController                        ) \
 68   do_klass(SecureClassLoader_klass,                     java_security_SecureClassLoader                       ) \
 69   do_klass(ClassNotFoundException_klass,                java_lang_ClassNotFoundException                      ) \
 70   do_klass(Record_klass,                                java_lang_Record                                      ) \
 71   do_klass(NoClassDefFoundError_klass,                  java_lang_NoClassDefFoundError                        ) \
 72   do_klass(LinkageError_klass,                          java_lang_LinkageError                                ) \

105   do_klass(reflect_ConstantPool_klass,                  reflect_ConstantPool                                  ) \
106   do_klass(reflect_UnsafeStaticFieldAccessorImpl_klass, reflect_UnsafeStaticFieldAccessorImpl                 ) \
107   do_klass(reflect_CallerSensitive_klass,               reflect_CallerSensitive                               ) \
108   do_klass(reflect_NativeConstructorAccessorImpl_klass, reflect_NativeConstructorAccessorImpl                 ) \
109                                                                                                                 \
110   /* support for dynamic typing; it's OK if these are NULL in earlier JDKs */                                   \
111   do_klass(DirectMethodHandle_klass,                    java_lang_invoke_DirectMethodHandle                   ) \
112   do_klass(MethodHandle_klass,                          java_lang_invoke_MethodHandle                         ) \
113   do_klass(VarHandle_klass,                             java_lang_invoke_VarHandle                            ) \
114   do_klass(MemberName_klass,                            java_lang_invoke_MemberName                           ) \
115   do_klass(ResolvedMethodName_klass,                    java_lang_invoke_ResolvedMethodName                   ) \
116   do_klass(MethodHandleNatives_klass,                   java_lang_invoke_MethodHandleNatives                  ) \
117   do_klass(LambdaForm_klass,                            java_lang_invoke_LambdaForm                           ) \
118   do_klass(MethodType_klass,                            java_lang_invoke_MethodType                           ) \
119   do_klass(BootstrapMethodError_klass,                  java_lang_BootstrapMethodError                        ) \
120   do_klass(CallSite_klass,                              java_lang_invoke_CallSite                             ) \
121   do_klass(NativeEntryPoint_klass,                      jdk_internal_invoke_NativeEntryPoint                  ) \
122   do_klass(Context_klass,                               java_lang_invoke_MethodHandleNatives_CallSiteContext  ) \
123   do_klass(ConstantCallSite_klass,                      java_lang_invoke_ConstantCallSite                     ) \
124   do_klass(MutableCallSite_klass,                       java_lang_invoke_MutableCallSite                      ) \

125   do_klass(VolatileCallSite_klass,                      java_lang_invoke_VolatileCallSite                     ) \
126   /* Note: MethodHandle must be first, and VolatileCallSite last in group */                                    \
127                                                                                                                 \
128   do_klass(AssertionStatusDirectives_klass,             java_lang_AssertionStatusDirectives                   ) \
129   do_klass(StringBuffer_klass,                          java_lang_StringBuffer                                ) \
130   do_klass(StringBuilder_klass,                         java_lang_StringBuilder                               ) \
131   do_klass(UnsafeConstants_klass,                       jdk_internal_misc_UnsafeConstants                     ) \
132   do_klass(internal_Unsafe_klass,                       jdk_internal_misc_Unsafe                              ) \
133   do_klass(module_Modules_klass,                        jdk_internal_module_Modules                           ) \
134                                                                                                                 \
135   /* support for CDS */                                                                                         \
136   do_klass(ByteArrayInputStream_klass,                  java_io_ByteArrayInputStream                          ) \
137   do_klass(URL_klass,                                   java_net_URL                                          ) \
138   do_klass(URLClassLoader_klass,                        java_net_URLClassLoader                               ) \
139   do_klass(Jar_Manifest_klass,                          java_util_jar_Manifest                                ) \
140   do_klass(jdk_internal_loader_BuiltinClassLoader_klass,jdk_internal_loader_BuiltinClassLoader                ) \
141   do_klass(jdk_internal_loader_ClassLoaders_klass,      jdk_internal_loader_ClassLoaders                      ) \
142   do_klass(jdk_internal_loader_ClassLoaders_AppClassLoader_klass,      jdk_internal_loader_ClassLoaders_AppClassLoader) \
143   do_klass(jdk_internal_loader_ClassLoaders_PlatformClassLoader_klass, jdk_internal_loader_ClassLoaders_PlatformClassLoader) \
144   do_klass(CodeSource_klass,                            java_security_CodeSource                              ) \

 33 // VM_CLASSES_DO iterates the classes that are directly referenced
 34 // by the VM, suhch as java.lang.Object and java.lang.String. These
 35 // classes are resolved at VM bootstrap, before any Java code is executed,
 36 // so no class loader is able to provide a different definition.
 37 //
 38 // Each VM class has a short klass name (like Object_klass),
 39 // and a vmSymbol name (like java_lang_Object). Both of these can
 40 // be used to find the vmClassID for this class. The following two
 41 // macros will evaluate to the same value:
 42 //
 43 //    VM_CLASS_ID(Object_klass)
 44 //    VM_CLASS_ID(java_lang_Object)
 45 //
 46 // The order of these definitions is significant: the classes are
 47 // resolved by vmClasses::resolve_all() in this order. Changing the
 48 // order may require careful restructuring of the VM start-up sequence.
 49 //
 50 #define VM_CLASSES_DO(do_klass)                                                                                 \
 51   /* well-known classes */                                                                                      \
 52   do_klass(Object_klass,                                java_lang_Object                                      ) \
 53   do_klass(IdentityObject_klass,                        java_lang_IdentityObject                              ) \
 54   do_klass(PrimitiveObject_klass,                       java_lang_PrimitiveObject                             ) \
 55   do_klass(String_klass,                                java_lang_String                                      ) \
 56   do_klass(Class_klass,                                 java_lang_Class                                       ) \
 57   do_klass(Cloneable_klass,                             java_lang_Cloneable                                   ) \
 58   do_klass(ClassLoader_klass,                           java_lang_ClassLoader                                 ) \
 59   do_klass(Serializable_klass,                          java_io_Serializable                                  ) \
 60   do_klass(System_klass,                                java_lang_System                                      ) \
 61   do_klass(Throwable_klass,                             java_lang_Throwable                                   ) \
 62   do_klass(Error_klass,                                 java_lang_Error                                       ) \
 63   do_klass(ThreadDeath_klass,                           java_lang_ThreadDeath                                 ) \
 64   do_klass(Exception_klass,                             java_lang_Exception                                   ) \
 65   do_klass(RuntimeException_klass,                      java_lang_RuntimeException                            ) \
 66   do_klass(SecurityManager_klass,                       java_lang_SecurityManager                             ) \
 67   do_klass(ProtectionDomain_klass,                      java_security_ProtectionDomain                        ) \
 68   do_klass(AccessControlContext_klass,                  java_security_AccessControlContext                    ) \
 69   do_klass(AccessController_klass,                      java_security_AccessController                        ) \
 70   do_klass(SecureClassLoader_klass,                     java_security_SecureClassLoader                       ) \
 71   do_klass(ClassNotFoundException_klass,                java_lang_ClassNotFoundException                      ) \
 72   do_klass(Record_klass,                                java_lang_Record                                      ) \
 73   do_klass(NoClassDefFoundError_klass,                  java_lang_NoClassDefFoundError                        ) \
 74   do_klass(LinkageError_klass,                          java_lang_LinkageError                                ) \

107   do_klass(reflect_ConstantPool_klass,                  reflect_ConstantPool                                  ) \
108   do_klass(reflect_UnsafeStaticFieldAccessorImpl_klass, reflect_UnsafeStaticFieldAccessorImpl                 ) \
109   do_klass(reflect_CallerSensitive_klass,               reflect_CallerSensitive                               ) \
110   do_klass(reflect_NativeConstructorAccessorImpl_klass, reflect_NativeConstructorAccessorImpl                 ) \
111                                                                                                                 \
112   /* support for dynamic typing; it's OK if these are NULL in earlier JDKs */                                   \
113   do_klass(DirectMethodHandle_klass,                    java_lang_invoke_DirectMethodHandle                   ) \
114   do_klass(MethodHandle_klass,                          java_lang_invoke_MethodHandle                         ) \
115   do_klass(VarHandle_klass,                             java_lang_invoke_VarHandle                            ) \
116   do_klass(MemberName_klass,                            java_lang_invoke_MemberName                           ) \
117   do_klass(ResolvedMethodName_klass,                    java_lang_invoke_ResolvedMethodName                   ) \
118   do_klass(MethodHandleNatives_klass,                   java_lang_invoke_MethodHandleNatives                  ) \
119   do_klass(LambdaForm_klass,                            java_lang_invoke_LambdaForm                           ) \
120   do_klass(MethodType_klass,                            java_lang_invoke_MethodType                           ) \
121   do_klass(BootstrapMethodError_klass,                  java_lang_BootstrapMethodError                        ) \
122   do_klass(CallSite_klass,                              java_lang_invoke_CallSite                             ) \
123   do_klass(NativeEntryPoint_klass,                      jdk_internal_invoke_NativeEntryPoint                  ) \
124   do_klass(Context_klass,                               java_lang_invoke_MethodHandleNatives_CallSiteContext  ) \
125   do_klass(ConstantCallSite_klass,                      java_lang_invoke_ConstantCallSite                     ) \
126   do_klass(MutableCallSite_klass,                       java_lang_invoke_MutableCallSite                      ) \
127   do_klass(PrimitiveObjectMethods_klass,                java_lang_runtime_PrimitiveObjectMethods              ) \
128   do_klass(VolatileCallSite_klass,                      java_lang_invoke_VolatileCallSite                     ) \
129   /* Note: MethodHandle must be first, and VolatileCallSite last in group */                                    \
130                                                                                                                 \
131   do_klass(AssertionStatusDirectives_klass,             java_lang_AssertionStatusDirectives                   ) \
132   do_klass(StringBuffer_klass,                          java_lang_StringBuffer                                ) \
133   do_klass(StringBuilder_klass,                         java_lang_StringBuilder                               ) \
134   do_klass(UnsafeConstants_klass,                       jdk_internal_misc_UnsafeConstants                     ) \
135   do_klass(internal_Unsafe_klass,                       jdk_internal_misc_Unsafe                              ) \
136   do_klass(module_Modules_klass,                        jdk_internal_module_Modules                           ) \
137                                                                                                                 \
138   /* support for CDS */                                                                                         \
139   do_klass(ByteArrayInputStream_klass,                  java_io_ByteArrayInputStream                          ) \
140   do_klass(URL_klass,                                   java_net_URL                                          ) \
141   do_klass(URLClassLoader_klass,                        java_net_URLClassLoader                               ) \
142   do_klass(Jar_Manifest_klass,                          java_util_jar_Manifest                                ) \
143   do_klass(jdk_internal_loader_BuiltinClassLoader_klass,jdk_internal_loader_BuiltinClassLoader                ) \
144   do_klass(jdk_internal_loader_ClassLoaders_klass,      jdk_internal_loader_ClassLoaders                      ) \
145   do_klass(jdk_internal_loader_ClassLoaders_AppClassLoader_klass,      jdk_internal_loader_ClassLoaders_AppClassLoader) \
146   do_klass(jdk_internal_loader_ClassLoaders_PlatformClassLoader_klass, jdk_internal_loader_ClassLoaders_PlatformClassLoader) \
147   do_klass(CodeSource_klass,                            java_security_CodeSource                              ) \
< prev index next >