< prev index next >

hotspot/src/share/vm/classfile/javaClasses.cpp

Print this page




3626 int java_lang_boxing_object::long_value_offset;
3627 int java_lang_ref_Reference::referent_offset;
3628 int java_lang_ref_Reference::queue_offset;
3629 int java_lang_ref_Reference::next_offset;
3630 int java_lang_ref_Reference::discovered_offset;
3631 int java_lang_ref_Reference::number_of_fake_oop_fields;
3632 int java_lang_ref_SoftReference::timestamp_offset;
3633 int java_lang_ref_SoftReference::static_clock_offset;
3634 int java_lang_ClassLoader::parent_offset;
3635 int java_lang_System::static_in_offset;
3636 int java_lang_System::static_out_offset;
3637 int java_lang_System::static_err_offset;
3638 int java_lang_System::static_security_offset;
3639 int java_lang_StackTraceElement::methodName_offset;
3640 int java_lang_StackTraceElement::fileName_offset;
3641 int java_lang_StackTraceElement::lineNumber_offset;
3642 int java_lang_StackTraceElement::moduleName_offset;
3643 int java_lang_StackTraceElement::moduleVersion_offset;
3644 int java_lang_StackTraceElement::classLoaderName_offset;
3645 int java_lang_StackTraceElement::declaringClass_offset;
3646 int java_lang_StackTraceElement::classOrLoaderModuleClassName_offset;
3647 int java_lang_StackFrameInfo::_declaringClass_offset;
3648 int java_lang_StackFrameInfo::_memberName_offset;
3649 int java_lang_StackFrameInfo::_bci_offset;
3650 int java_lang_StackFrameInfo::_version_offset;
3651 int java_lang_LiveStackFrameInfo::_monitors_offset;
3652 int java_lang_LiveStackFrameInfo::_locals_offset;
3653 int java_lang_LiveStackFrameInfo::_operands_offset;
3654 int java_lang_AssertionStatusDirectives::classes_offset;
3655 int java_lang_AssertionStatusDirectives::classEnabled_offset;
3656 int java_lang_AssertionStatusDirectives::packages_offset;
3657 int java_lang_AssertionStatusDirectives::packageEnabled_offset;
3658 int java_lang_AssertionStatusDirectives::deflt_offset;
3659 int java_nio_Buffer::_limit_offset;
3660 int java_util_concurrent_locks_AbstractOwnableSynchronizer::_owner_offset = 0;
3661 int reflect_ConstantPool::_oop_offset;
3662 int reflect_UnsafeStaticFieldAccessorImpl::_base_offset;
3663 
3664 
3665 // Support for java_lang_StackTraceElement
3666 


3676   element->obj_field_put(methodName_offset, value);
3677 }
3678 
3679 void java_lang_StackTraceElement::set_lineNumber(oop element, int value) {
3680   element->int_field_put(lineNumber_offset, value);
3681 }
3682 
3683 void java_lang_StackTraceElement::set_moduleName(oop element, oop value) {
3684   element->obj_field_put(moduleName_offset, value);
3685 }
3686 
3687 void java_lang_StackTraceElement::set_moduleVersion(oop element, oop value) {
3688   element->obj_field_put(moduleVersion_offset, value);
3689 }
3690 
3691 void java_lang_StackTraceElement::set_classLoaderName(oop element, oop value) {
3692   element->obj_field_put(classLoaderName_offset, value);
3693 }
3694 
3695 void java_lang_StackTraceElement::set_declaringClassObject(oop element, oop value) {
3696   element->obj_field_put(classOrLoaderModuleClassName_offset, value);
3697 }
3698 
3699 // Support for java_lang_StackFrameInfo
3700 void java_lang_StackFrameInfo::set_declaringClass(oop element, oop value) {
3701   element->obj_field_put(_declaringClass_offset, value);
3702 }
3703 
3704 void java_lang_StackFrameInfo::set_version(oop element, short value) {
3705   element->short_field_put(_version_offset, value);
3706 }
3707 
3708 void java_lang_StackFrameInfo::set_bci(oop element, int value) {
3709   element->int_field_put(_bci_offset, value);
3710 }
3711 
3712 void java_lang_LiveStackFrameInfo::set_monitors(oop element, oop value) {
3713   element->obj_field_put(_monitors_offset, value);
3714 }
3715 
3716 void java_lang_LiveStackFrameInfo::set_locals(oop element, oop value) {


3794   java_lang_ref_Reference::discovered_offset  = java_lang_ref_Reference::hc_discovered_offset * x + header;
3795   // Artificial fields for java_lang_ref_Reference
3796   // The first field is for the discovered field added in 1.4
3797   java_lang_ref_Reference::number_of_fake_oop_fields = 1;
3798 
3799   // java_lang_ref_SoftReference Class
3800   java_lang_ref_SoftReference::timestamp_offset = align_size_up((java_lang_ref_SoftReference::hc_timestamp_offset * x + header), BytesPerLong);
3801   // Don't multiply static fields because they are always in wordSize units
3802   java_lang_ref_SoftReference::static_clock_offset = java_lang_ref_SoftReference::hc_static_clock_offset * x;
3803 
3804   // java_lang_ClassLoader
3805   java_lang_ClassLoader::parent_offset = java_lang_ClassLoader::hc_parent_offset * x + header;
3806 
3807   // java_lang_System
3808   java_lang_System::static_in_offset  = java_lang_System::hc_static_in_offset  * x;
3809   java_lang_System::static_out_offset = java_lang_System::hc_static_out_offset * x;
3810   java_lang_System::static_err_offset = java_lang_System::hc_static_err_offset * x;
3811   java_lang_System::static_security_offset = java_lang_System::hc_static_security_offset * x;
3812 
3813   // java_lang_StackTraceElement
3814   java_lang_StackTraceElement::classOrLoaderModuleClassName_offset= java_lang_StackTraceElement::hc_classOrLoaderModuleClassName_offset* x + header;
3815   java_lang_StackTraceElement::classLoaderName_offset = java_lang_StackTraceElement::hc_classLoaderName_offset * x + header;
3816   java_lang_StackTraceElement::moduleName_offset = java_lang_StackTraceElement::hc_moduleName_offset * x + header;
3817   java_lang_StackTraceElement::moduleVersion_offset = java_lang_StackTraceElement::hc_moduleVersion_offset * x + header;
3818   java_lang_StackTraceElement::declaringClass_offset = java_lang_StackTraceElement::hc_declaringClass_offset  * x + header;
3819   java_lang_StackTraceElement::methodName_offset = java_lang_StackTraceElement::hc_methodName_offset * x + header;
3820   java_lang_StackTraceElement::fileName_offset   = java_lang_StackTraceElement::hc_fileName_offset   * x + header;
3821   java_lang_StackTraceElement::lineNumber_offset = java_lang_StackTraceElement::hc_lineNumber_offset * x + header;
3822   java_lang_AssertionStatusDirectives::classes_offset = java_lang_AssertionStatusDirectives::hc_classes_offset * x + header;
3823   java_lang_AssertionStatusDirectives::classEnabled_offset = java_lang_AssertionStatusDirectives::hc_classEnabled_offset * x + header;
3824   java_lang_AssertionStatusDirectives::packages_offset = java_lang_AssertionStatusDirectives::hc_packages_offset * x + header;
3825   java_lang_AssertionStatusDirectives::packageEnabled_offset = java_lang_AssertionStatusDirectives::hc_packageEnabled_offset * x + header;
3826   java_lang_AssertionStatusDirectives::deflt_offset = java_lang_AssertionStatusDirectives::hc_deflt_offset * x + header;
3827 
3828 }
3829 
3830 
3831 // Compute non-hard-coded field offsets of all the classes in this file
3832 void JavaClasses::compute_offsets() {
3833   // java_lang_Class::compute_offsets was called earlier in bootstrap
3834   java_lang_ClassLoader::compute_offsets();




3626 int java_lang_boxing_object::long_value_offset;
3627 int java_lang_ref_Reference::referent_offset;
3628 int java_lang_ref_Reference::queue_offset;
3629 int java_lang_ref_Reference::next_offset;
3630 int java_lang_ref_Reference::discovered_offset;
3631 int java_lang_ref_Reference::number_of_fake_oop_fields;
3632 int java_lang_ref_SoftReference::timestamp_offset;
3633 int java_lang_ref_SoftReference::static_clock_offset;
3634 int java_lang_ClassLoader::parent_offset;
3635 int java_lang_System::static_in_offset;
3636 int java_lang_System::static_out_offset;
3637 int java_lang_System::static_err_offset;
3638 int java_lang_System::static_security_offset;
3639 int java_lang_StackTraceElement::methodName_offset;
3640 int java_lang_StackTraceElement::fileName_offset;
3641 int java_lang_StackTraceElement::lineNumber_offset;
3642 int java_lang_StackTraceElement::moduleName_offset;
3643 int java_lang_StackTraceElement::moduleVersion_offset;
3644 int java_lang_StackTraceElement::classLoaderName_offset;
3645 int java_lang_StackTraceElement::declaringClass_offset;
3646 int java_lang_StackTraceElement::declaringClassObj_offset;
3647 int java_lang_StackFrameInfo::_declaringClass_offset;
3648 int java_lang_StackFrameInfo::_memberName_offset;
3649 int java_lang_StackFrameInfo::_bci_offset;
3650 int java_lang_StackFrameInfo::_version_offset;
3651 int java_lang_LiveStackFrameInfo::_monitors_offset;
3652 int java_lang_LiveStackFrameInfo::_locals_offset;
3653 int java_lang_LiveStackFrameInfo::_operands_offset;
3654 int java_lang_AssertionStatusDirectives::classes_offset;
3655 int java_lang_AssertionStatusDirectives::classEnabled_offset;
3656 int java_lang_AssertionStatusDirectives::packages_offset;
3657 int java_lang_AssertionStatusDirectives::packageEnabled_offset;
3658 int java_lang_AssertionStatusDirectives::deflt_offset;
3659 int java_nio_Buffer::_limit_offset;
3660 int java_util_concurrent_locks_AbstractOwnableSynchronizer::_owner_offset = 0;
3661 int reflect_ConstantPool::_oop_offset;
3662 int reflect_UnsafeStaticFieldAccessorImpl::_base_offset;
3663 
3664 
3665 // Support for java_lang_StackTraceElement
3666 


3676   element->obj_field_put(methodName_offset, value);
3677 }
3678 
3679 void java_lang_StackTraceElement::set_lineNumber(oop element, int value) {
3680   element->int_field_put(lineNumber_offset, value);
3681 }
3682 
3683 void java_lang_StackTraceElement::set_moduleName(oop element, oop value) {
3684   element->obj_field_put(moduleName_offset, value);
3685 }
3686 
3687 void java_lang_StackTraceElement::set_moduleVersion(oop element, oop value) {
3688   element->obj_field_put(moduleVersion_offset, value);
3689 }
3690 
3691 void java_lang_StackTraceElement::set_classLoaderName(oop element, oop value) {
3692   element->obj_field_put(classLoaderName_offset, value);
3693 }
3694 
3695 void java_lang_StackTraceElement::set_declaringClassObject(oop element, oop value) {
3696   element->obj_field_put(declaringClassObj_offset, value);
3697 }
3698 
3699 // Support for java_lang_StackFrameInfo
3700 void java_lang_StackFrameInfo::set_declaringClass(oop element, oop value) {
3701   element->obj_field_put(_declaringClass_offset, value);
3702 }
3703 
3704 void java_lang_StackFrameInfo::set_version(oop element, short value) {
3705   element->short_field_put(_version_offset, value);
3706 }
3707 
3708 void java_lang_StackFrameInfo::set_bci(oop element, int value) {
3709   element->int_field_put(_bci_offset, value);
3710 }
3711 
3712 void java_lang_LiveStackFrameInfo::set_monitors(oop element, oop value) {
3713   element->obj_field_put(_monitors_offset, value);
3714 }
3715 
3716 void java_lang_LiveStackFrameInfo::set_locals(oop element, oop value) {


3794   java_lang_ref_Reference::discovered_offset  = java_lang_ref_Reference::hc_discovered_offset * x + header;
3795   // Artificial fields for java_lang_ref_Reference
3796   // The first field is for the discovered field added in 1.4
3797   java_lang_ref_Reference::number_of_fake_oop_fields = 1;
3798 
3799   // java_lang_ref_SoftReference Class
3800   java_lang_ref_SoftReference::timestamp_offset = align_size_up((java_lang_ref_SoftReference::hc_timestamp_offset * x + header), BytesPerLong);
3801   // Don't multiply static fields because they are always in wordSize units
3802   java_lang_ref_SoftReference::static_clock_offset = java_lang_ref_SoftReference::hc_static_clock_offset * x;
3803 
3804   // java_lang_ClassLoader
3805   java_lang_ClassLoader::parent_offset = java_lang_ClassLoader::hc_parent_offset * x + header;
3806 
3807   // java_lang_System
3808   java_lang_System::static_in_offset  = java_lang_System::hc_static_in_offset  * x;
3809   java_lang_System::static_out_offset = java_lang_System::hc_static_out_offset * x;
3810   java_lang_System::static_err_offset = java_lang_System::hc_static_err_offset * x;
3811   java_lang_System::static_security_offset = java_lang_System::hc_static_security_offset * x;
3812 
3813   // java_lang_StackTraceElement
3814   java_lang_StackTraceElement::declaringClassObj_offset = java_lang_StackTraceElement::hc_declaringClassObj_offset * x + header;
3815   java_lang_StackTraceElement::classLoaderName_offset = java_lang_StackTraceElement::hc_classLoaderName_offset * x + header;
3816   java_lang_StackTraceElement::moduleName_offset = java_lang_StackTraceElement::hc_moduleName_offset * x + header;
3817   java_lang_StackTraceElement::moduleVersion_offset = java_lang_StackTraceElement::hc_moduleVersion_offset * x + header;
3818   java_lang_StackTraceElement::declaringClass_offset = java_lang_StackTraceElement::hc_declaringClass_offset  * x + header;
3819   java_lang_StackTraceElement::methodName_offset = java_lang_StackTraceElement::hc_methodName_offset * x + header;
3820   java_lang_StackTraceElement::fileName_offset   = java_lang_StackTraceElement::hc_fileName_offset   * x + header;
3821   java_lang_StackTraceElement::lineNumber_offset = java_lang_StackTraceElement::hc_lineNumber_offset * x + header;
3822   java_lang_AssertionStatusDirectives::classes_offset = java_lang_AssertionStatusDirectives::hc_classes_offset * x + header;
3823   java_lang_AssertionStatusDirectives::classEnabled_offset = java_lang_AssertionStatusDirectives::hc_classEnabled_offset * x + header;
3824   java_lang_AssertionStatusDirectives::packages_offset = java_lang_AssertionStatusDirectives::hc_packages_offset * x + header;
3825   java_lang_AssertionStatusDirectives::packageEnabled_offset = java_lang_AssertionStatusDirectives::hc_packageEnabled_offset * x + header;
3826   java_lang_AssertionStatusDirectives::deflt_offset = java_lang_AssertionStatusDirectives::hc_deflt_offset * x + header;
3827 
3828 }
3829 
3830 
3831 // Compute non-hard-coded field offsets of all the classes in this file
3832 void JavaClasses::compute_offsets() {
3833   // java_lang_Class::compute_offsets was called earlier in bootstrap
3834   java_lang_ClassLoader::compute_offsets();


< prev index next >