hotspot/src/share/vm/ci/ciField.cpp
changeset 8331 dfa72047c093
parent 8076 96d498ec7ae1
child 8676 9098d4e927e1
equal deleted inserted replaced
8330:5f6046a69677 8331:dfa72047c093
     1 /*
     1 /*
     2  * Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1999, 2011, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     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
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.
     7  * published by the Free Software Foundation.
   210     //    field to be not constant.
   210     //    field to be not constant.
   211     // 2. The field is a *special* static&final field whose value
   211     // 2. The field is a *special* static&final field whose value
   212     //    may change.  The three examples are java.lang.System.in,
   212     //    may change.  The three examples are java.lang.System.in,
   213     //    java.lang.System.out, and java.lang.System.err.
   213     //    java.lang.System.out, and java.lang.System.err.
   214 
   214 
   215     klassOop k = _holder->get_klassOop();
   215     Handle k = _holder->get_klassOop();
   216     assert( SystemDictionary::System_klass() != NULL, "Check once per vm");
   216     assert( SystemDictionary::System_klass() != NULL, "Check once per vm");
   217     if( k == SystemDictionary::System_klass() ) {
   217     if( k() == SystemDictionary::System_klass() ) {
   218       // Check offsets for case 2: System.in, System.out, or System.err
   218       // Check offsets for case 2: System.in, System.out, or System.err
   219       if( _offset == java_lang_System::in_offset_in_bytes()  ||
   219       if( _offset == java_lang_System::in_offset_in_bytes()  ||
   220           _offset == java_lang_System::out_offset_in_bytes() ||
   220           _offset == java_lang_System::out_offset_in_bytes() ||
   221           _offset == java_lang_System::err_offset_in_bytes() ) {
   221           _offset == java_lang_System::err_offset_in_bytes() ) {
   222         _is_constant = false;
   222         _is_constant = false;