Mercurial > hg > graal-jvmci-8
comparison src/share/vm/ci/ciField.cpp @ 2261:1957c1478794
7019819: bare oop in ciField
Reviewed-by: kvn, iveresov
author | never |
---|---|
date | Tue, 15 Feb 2011 22:18:33 -0800 |
parents | 3582bf76420e |
children | 2ab52cda08e5 8033953d67ff |
comparison
equal
deleted
inserted
replaced
2260:850b2295a494 | 2261:1957c1478794 |
---|---|
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; |