< prev index next >

src/hotspot/share/classfile/javaClasses.cpp

Print this page




3649 int java_lang_reflect_Field::name_offset;
3650 int java_lang_reflect_Field::type_offset;
3651 int java_lang_reflect_Field::slot_offset;
3652 int java_lang_reflect_Field::modifiers_offset;
3653 int java_lang_reflect_Field::signature_offset;
3654 int java_lang_reflect_Field::annotations_offset;
3655 int java_lang_reflect_Field::type_annotations_offset;
3656 int java_lang_reflect_Parameter::name_offset;
3657 int java_lang_reflect_Parameter::modifiers_offset;
3658 int java_lang_reflect_Parameter::index_offset;
3659 int java_lang_reflect_Parameter::executable_offset;
3660 int java_lang_boxing_object::value_offset;
3661 int java_lang_boxing_object::long_value_offset;
3662 int java_lang_ref_Reference::referent_offset;
3663 int java_lang_ref_Reference::queue_offset;
3664 int java_lang_ref_Reference::next_offset;
3665 int java_lang_ref_Reference::discovered_offset;
3666 int java_lang_ref_Reference::number_of_fake_oop_fields;
3667 int java_lang_ref_SoftReference::timestamp_offset;
3668 int java_lang_ref_SoftReference::static_clock_offset;

3669 int java_lang_ClassLoader::parent_offset;
3670 int java_lang_System::static_in_offset;
3671 int java_lang_System::static_out_offset;
3672 int java_lang_System::static_err_offset;
3673 int java_lang_System::static_security_offset;
3674 int java_lang_StackTraceElement::methodName_offset;
3675 int java_lang_StackTraceElement::fileName_offset;
3676 int java_lang_StackTraceElement::lineNumber_offset;
3677 int java_lang_StackTraceElement::moduleName_offset;
3678 int java_lang_StackTraceElement::moduleVersion_offset;
3679 int java_lang_StackTraceElement::classLoaderName_offset;
3680 int java_lang_StackTraceElement::declaringClass_offset;
3681 int java_lang_StackTraceElement::declaringClassObject_offset;
3682 int java_lang_StackFrameInfo::_declaringClass_offset;
3683 int java_lang_StackFrameInfo::_memberName_offset;
3684 int java_lang_StackFrameInfo::_bci_offset;
3685 int java_lang_StackFrameInfo::_version_offset;
3686 int java_lang_LiveStackFrameInfo::_monitors_offset;
3687 int java_lang_LiveStackFrameInfo::_locals_offset;
3688 int java_lang_LiveStackFrameInfo::_operands_offset;


3824   java_lang_Throwable::static_unassigned_stacktrace_offset = java_lang_Throwable::hc_static_unassigned_stacktrace_offset *  x;
3825 
3826   // java_lang_boxing_object
3827   java_lang_boxing_object::value_offset = java_lang_boxing_object::hc_value_offset + header;
3828   java_lang_boxing_object::long_value_offset = align_up((java_lang_boxing_object::hc_value_offset + header), BytesPerLong);
3829 
3830   // java_lang_ref_Reference:
3831   java_lang_ref_Reference::referent_offset = java_lang_ref_Reference::hc_referent_offset * x + header;
3832   java_lang_ref_Reference::queue_offset = java_lang_ref_Reference::hc_queue_offset * x + header;
3833   java_lang_ref_Reference::next_offset  = java_lang_ref_Reference::hc_next_offset * x + header;
3834   java_lang_ref_Reference::discovered_offset  = java_lang_ref_Reference::hc_discovered_offset * x + header;
3835   // Artificial fields for java_lang_ref_Reference
3836   // The first field is for the discovered field added in 1.4
3837   java_lang_ref_Reference::number_of_fake_oop_fields = 1;
3838 
3839   // java_lang_ref_SoftReference Class
3840   java_lang_ref_SoftReference::timestamp_offset = align_up((java_lang_ref_SoftReference::hc_timestamp_offset * x + header), BytesPerLong);
3841   // Don't multiply static fields because they are always in wordSize units
3842   java_lang_ref_SoftReference::static_clock_offset = java_lang_ref_SoftReference::hc_static_clock_offset * x;
3843 



3844   // java_lang_ClassLoader
3845   java_lang_ClassLoader::parent_offset = java_lang_ClassLoader::hc_parent_offset * x + header;
3846 
3847   // java_lang_System
3848   java_lang_System::static_in_offset  = java_lang_System::hc_static_in_offset  * x;
3849   java_lang_System::static_out_offset = java_lang_System::hc_static_out_offset * x;
3850   java_lang_System::static_err_offset = java_lang_System::hc_static_err_offset * x;
3851   java_lang_System::static_security_offset = java_lang_System::hc_static_security_offset * x;
3852 
3853   // java_lang_StackTraceElement
3854   java_lang_StackTraceElement::declaringClassObject_offset = java_lang_StackTraceElement::hc_declaringClassObject_offset * x + header;
3855   java_lang_StackTraceElement::classLoaderName_offset = java_lang_StackTraceElement::hc_classLoaderName_offset * x + header;
3856   java_lang_StackTraceElement::moduleName_offset = java_lang_StackTraceElement::hc_moduleName_offset * x + header;
3857   java_lang_StackTraceElement::moduleVersion_offset = java_lang_StackTraceElement::hc_moduleVersion_offset * x + header;
3858   java_lang_StackTraceElement::declaringClass_offset = java_lang_StackTraceElement::hc_declaringClass_offset  * x + header;
3859   java_lang_StackTraceElement::methodName_offset = java_lang_StackTraceElement::hc_methodName_offset * x + header;
3860   java_lang_StackTraceElement::fileName_offset   = java_lang_StackTraceElement::hc_fileName_offset   * x + header;
3861   java_lang_StackTraceElement::lineNumber_offset = java_lang_StackTraceElement::hc_lineNumber_offset * x + header;
3862   java_lang_AssertionStatusDirectives::classes_offset = java_lang_AssertionStatusDirectives::hc_classes_offset * x + header;
3863   java_lang_AssertionStatusDirectives::classEnabled_offset = java_lang_AssertionStatusDirectives::hc_classEnabled_offset * x + header;


4050 
4051   // java.lang.StackTraceElement
4052 
4053   CHECK_OFFSET("java/lang/StackTraceElement", java_lang_StackTraceElement, declaringClassObject, "Ljava/lang/Class;");
4054   CHECK_OFFSET("java/lang/StackTraceElement", java_lang_StackTraceElement, classLoaderName, "Ljava/lang/String;");
4055   CHECK_OFFSET("java/lang/StackTraceElement", java_lang_StackTraceElement, moduleName,      "Ljava/lang/String;");
4056   CHECK_OFFSET("java/lang/StackTraceElement", java_lang_StackTraceElement, moduleVersion,   "Ljava/lang/String;");
4057   CHECK_OFFSET("java/lang/StackTraceElement", java_lang_StackTraceElement, declaringClass,  "Ljava/lang/String;");
4058   CHECK_OFFSET("java/lang/StackTraceElement", java_lang_StackTraceElement, methodName,      "Ljava/lang/String;");
4059   CHECK_OFFSET("java/lang/StackTraceElement", java_lang_StackTraceElement, fileName,        "Ljava/lang/String;");
4060   CHECK_OFFSET("java/lang/StackTraceElement", java_lang_StackTraceElement, lineNumber,      "I");
4061 
4062   // java.lang.ref.Reference
4063 
4064   CHECK_OFFSET("java/lang/ref/Reference", java_lang_ref_Reference, referent, "Ljava/lang/Object;");
4065   CHECK_OFFSET("java/lang/ref/Reference", java_lang_ref_Reference, queue, "Ljava/lang/ref/ReferenceQueue;");
4066   CHECK_OFFSET("java/lang/ref/Reference", java_lang_ref_Reference, next, "Ljava/lang/ref/Reference;");
4067   // Fake field
4068   //CHECK_OFFSET("java/lang/ref/Reference", java_lang_ref_Reference, discovered, "Ljava/lang/ref/Reference;");
4069 




4070   // java.lang.ref.SoftReference
4071 
4072   CHECK_OFFSET("java/lang/ref/SoftReference", java_lang_ref_SoftReference, timestamp, "J");
4073   CHECK_STATIC_OFFSET("java/lang/ref/SoftReference", java_lang_ref_SoftReference, clock, "J");
4074 
4075   // java.lang.AssertionStatusDirectives
4076   //
4077   // The CheckAssertionStatusDirectives boolean can be removed from here and
4078   // globals.hpp after the AssertionStatusDirectives class has been integrated
4079   // into merlin "for some time."  Without it, the vm will fail with early
4080   // merlin builds.
4081 
4082   if (CheckAssertionStatusDirectives) {
4083     const char* nm = "java/lang/AssertionStatusDirectives";
4084     const char* sig = "[Ljava/lang/String;";
4085     CHECK_OFFSET(nm, java_lang_AssertionStatusDirectives, classes, sig);
4086     CHECK_OFFSET(nm, java_lang_AssertionStatusDirectives, classEnabled, "[Z");
4087     CHECK_OFFSET(nm, java_lang_AssertionStatusDirectives, packages, sig);
4088     CHECK_OFFSET(nm, java_lang_AssertionStatusDirectives, packageEnabled, "[Z");
4089     CHECK_OFFSET(nm, java_lang_AssertionStatusDirectives, deflt, "Z");




3649 int java_lang_reflect_Field::name_offset;
3650 int java_lang_reflect_Field::type_offset;
3651 int java_lang_reflect_Field::slot_offset;
3652 int java_lang_reflect_Field::modifiers_offset;
3653 int java_lang_reflect_Field::signature_offset;
3654 int java_lang_reflect_Field::annotations_offset;
3655 int java_lang_reflect_Field::type_annotations_offset;
3656 int java_lang_reflect_Parameter::name_offset;
3657 int java_lang_reflect_Parameter::modifiers_offset;
3658 int java_lang_reflect_Parameter::index_offset;
3659 int java_lang_reflect_Parameter::executable_offset;
3660 int java_lang_boxing_object::value_offset;
3661 int java_lang_boxing_object::long_value_offset;
3662 int java_lang_ref_Reference::referent_offset;
3663 int java_lang_ref_Reference::queue_offset;
3664 int java_lang_ref_Reference::next_offset;
3665 int java_lang_ref_Reference::discovered_offset;
3666 int java_lang_ref_Reference::number_of_fake_oop_fields;
3667 int java_lang_ref_SoftReference::timestamp_offset;
3668 int java_lang_ref_SoftReference::static_clock_offset;
3669 int java_lang_Continuation::target_offset;
3670 int java_lang_ClassLoader::parent_offset;
3671 int java_lang_System::static_in_offset;
3672 int java_lang_System::static_out_offset;
3673 int java_lang_System::static_err_offset;
3674 int java_lang_System::static_security_offset;
3675 int java_lang_StackTraceElement::methodName_offset;
3676 int java_lang_StackTraceElement::fileName_offset;
3677 int java_lang_StackTraceElement::lineNumber_offset;
3678 int java_lang_StackTraceElement::moduleName_offset;
3679 int java_lang_StackTraceElement::moduleVersion_offset;
3680 int java_lang_StackTraceElement::classLoaderName_offset;
3681 int java_lang_StackTraceElement::declaringClass_offset;
3682 int java_lang_StackTraceElement::declaringClassObject_offset;
3683 int java_lang_StackFrameInfo::_declaringClass_offset;
3684 int java_lang_StackFrameInfo::_memberName_offset;
3685 int java_lang_StackFrameInfo::_bci_offset;
3686 int java_lang_StackFrameInfo::_version_offset;
3687 int java_lang_LiveStackFrameInfo::_monitors_offset;
3688 int java_lang_LiveStackFrameInfo::_locals_offset;
3689 int java_lang_LiveStackFrameInfo::_operands_offset;


3825   java_lang_Throwable::static_unassigned_stacktrace_offset = java_lang_Throwable::hc_static_unassigned_stacktrace_offset *  x;
3826 
3827   // java_lang_boxing_object
3828   java_lang_boxing_object::value_offset = java_lang_boxing_object::hc_value_offset + header;
3829   java_lang_boxing_object::long_value_offset = align_up((java_lang_boxing_object::hc_value_offset + header), BytesPerLong);
3830 
3831   // java_lang_ref_Reference:
3832   java_lang_ref_Reference::referent_offset = java_lang_ref_Reference::hc_referent_offset * x + header;
3833   java_lang_ref_Reference::queue_offset = java_lang_ref_Reference::hc_queue_offset * x + header;
3834   java_lang_ref_Reference::next_offset  = java_lang_ref_Reference::hc_next_offset * x + header;
3835   java_lang_ref_Reference::discovered_offset  = java_lang_ref_Reference::hc_discovered_offset * x + header;
3836   // Artificial fields for java_lang_ref_Reference
3837   // The first field is for the discovered field added in 1.4
3838   java_lang_ref_Reference::number_of_fake_oop_fields = 1;
3839 
3840   // java_lang_ref_SoftReference Class
3841   java_lang_ref_SoftReference::timestamp_offset = align_up((java_lang_ref_SoftReference::hc_timestamp_offset * x + header), BytesPerLong);
3842   // Don't multiply static fields because they are always in wordSize units
3843   java_lang_ref_SoftReference::static_clock_offset = java_lang_ref_SoftReference::hc_static_clock_offset * x;
3844 
3845   // java_lang_Continuation Class
3846   java_lang_Continuation::target_offset = java_lang_Continuation::hc_target_offset * x + header;
3847 
3848   // java_lang_ClassLoader
3849   java_lang_ClassLoader::parent_offset = java_lang_ClassLoader::hc_parent_offset * x + header;
3850 
3851   // java_lang_System
3852   java_lang_System::static_in_offset  = java_lang_System::hc_static_in_offset  * x;
3853   java_lang_System::static_out_offset = java_lang_System::hc_static_out_offset * x;
3854   java_lang_System::static_err_offset = java_lang_System::hc_static_err_offset * x;
3855   java_lang_System::static_security_offset = java_lang_System::hc_static_security_offset * x;
3856 
3857   // java_lang_StackTraceElement
3858   java_lang_StackTraceElement::declaringClassObject_offset = java_lang_StackTraceElement::hc_declaringClassObject_offset * x + header;
3859   java_lang_StackTraceElement::classLoaderName_offset = java_lang_StackTraceElement::hc_classLoaderName_offset * x + header;
3860   java_lang_StackTraceElement::moduleName_offset = java_lang_StackTraceElement::hc_moduleName_offset * x + header;
3861   java_lang_StackTraceElement::moduleVersion_offset = java_lang_StackTraceElement::hc_moduleVersion_offset * x + header;
3862   java_lang_StackTraceElement::declaringClass_offset = java_lang_StackTraceElement::hc_declaringClass_offset  * x + header;
3863   java_lang_StackTraceElement::methodName_offset = java_lang_StackTraceElement::hc_methodName_offset * x + header;
3864   java_lang_StackTraceElement::fileName_offset   = java_lang_StackTraceElement::hc_fileName_offset   * x + header;
3865   java_lang_StackTraceElement::lineNumber_offset = java_lang_StackTraceElement::hc_lineNumber_offset * x + header;
3866   java_lang_AssertionStatusDirectives::classes_offset = java_lang_AssertionStatusDirectives::hc_classes_offset * x + header;
3867   java_lang_AssertionStatusDirectives::classEnabled_offset = java_lang_AssertionStatusDirectives::hc_classEnabled_offset * x + header;


4054 
4055   // java.lang.StackTraceElement
4056 
4057   CHECK_OFFSET("java/lang/StackTraceElement", java_lang_StackTraceElement, declaringClassObject, "Ljava/lang/Class;");
4058   CHECK_OFFSET("java/lang/StackTraceElement", java_lang_StackTraceElement, classLoaderName, "Ljava/lang/String;");
4059   CHECK_OFFSET("java/lang/StackTraceElement", java_lang_StackTraceElement, moduleName,      "Ljava/lang/String;");
4060   CHECK_OFFSET("java/lang/StackTraceElement", java_lang_StackTraceElement, moduleVersion,   "Ljava/lang/String;");
4061   CHECK_OFFSET("java/lang/StackTraceElement", java_lang_StackTraceElement, declaringClass,  "Ljava/lang/String;");
4062   CHECK_OFFSET("java/lang/StackTraceElement", java_lang_StackTraceElement, methodName,      "Ljava/lang/String;");
4063   CHECK_OFFSET("java/lang/StackTraceElement", java_lang_StackTraceElement, fileName,        "Ljava/lang/String;");
4064   CHECK_OFFSET("java/lang/StackTraceElement", java_lang_StackTraceElement, lineNumber,      "I");
4065 
4066   // java.lang.ref.Reference
4067 
4068   CHECK_OFFSET("java/lang/ref/Reference", java_lang_ref_Reference, referent, "Ljava/lang/Object;");
4069   CHECK_OFFSET("java/lang/ref/Reference", java_lang_ref_Reference, queue, "Ljava/lang/ref/ReferenceQueue;");
4070   CHECK_OFFSET("java/lang/ref/Reference", java_lang_ref_Reference, next, "Ljava/lang/ref/Reference;");
4071   // Fake field
4072   //CHECK_OFFSET("java/lang/ref/Reference", java_lang_ref_Reference, discovered, "Ljava/lang/ref/Reference;");
4073 
4074   // java.lang.Continuation
4075 
4076   CHECK_OFFSET("java/lang/Continuation", java_lang_Continuation, target, "Ljava/lang/Runnable;");
4077 
4078   // java.lang.ref.SoftReference
4079 
4080   CHECK_OFFSET("java/lang/ref/SoftReference", java_lang_ref_SoftReference, timestamp, "J");
4081   CHECK_STATIC_OFFSET("java/lang/ref/SoftReference", java_lang_ref_SoftReference, clock, "J");
4082 
4083   // java.lang.AssertionStatusDirectives
4084   //
4085   // The CheckAssertionStatusDirectives boolean can be removed from here and
4086   // globals.hpp after the AssertionStatusDirectives class has been integrated
4087   // into merlin "for some time."  Without it, the vm will fail with early
4088   // merlin builds.
4089 
4090   if (CheckAssertionStatusDirectives) {
4091     const char* nm = "java/lang/AssertionStatusDirectives";
4092     const char* sig = "[Ljava/lang/String;";
4093     CHECK_OFFSET(nm, java_lang_AssertionStatusDirectives, classes, sig);
4094     CHECK_OFFSET(nm, java_lang_AssertionStatusDirectives, classEnabled, "[Z");
4095     CHECK_OFFSET(nm, java_lang_AssertionStatusDirectives, packages, sig);
4096     CHECK_OFFSET(nm, java_lang_AssertionStatusDirectives, packageEnabled, "[Z");
4097     CHECK_OFFSET(nm, java_lang_AssertionStatusDirectives, deflt, "Z");


< prev index next >