190 // 2. The field is a *special* static&final field whose value |
190 // 2. The field is a *special* static&final field whose value |
191 // may change. The three examples are java.lang.System.in, |
191 // may change. The three examples are java.lang.System.in, |
192 // java.lang.System.out, and java.lang.System.err. |
192 // java.lang.System.out, and java.lang.System.err. |
193 |
193 |
194 klassOop k = _holder->get_klassOop(); |
194 klassOop k = _holder->get_klassOop(); |
195 assert( SystemDictionary::system_klass() != NULL, "Check once per vm"); |
195 assert( SystemDictionary::System_klass() != NULL, "Check once per vm"); |
196 if( k == SystemDictionary::system_klass() ) { |
196 if( k == SystemDictionary::System_klass() ) { |
197 // Check offsets for case 2: System.in, System.out, or System.err |
197 // Check offsets for case 2: System.in, System.out, or System.err |
198 if( _offset == java_lang_System::in_offset_in_bytes() || |
198 if( _offset == java_lang_System::in_offset_in_bytes() || |
199 _offset == java_lang_System::out_offset_in_bytes() || |
199 _offset == java_lang_System::out_offset_in_bytes() || |
200 _offset == java_lang_System::err_offset_in_bytes() ) { |
200 _offset == java_lang_System::err_offset_in_bytes() ) { |
201 _is_constant = false; |
201 _is_constant = false; |