Mercurial > hg > truffle
comparison src/share/vm/ci/ciField.cpp @ 14909:4ca6dc0799b6
Backout jdk9 merge
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Tue, 01 Apr 2014 13:57:07 +0200 |
parents | d8041d695d19 |
children | 52b4284cb496 |
comparison
equal
deleted
inserted
replaced
14908:8db6e76cb658 | 14909:4ca6dc0799b6 |
---|---|
199 } | 199 } |
200 _is_constant = false; | 200 _is_constant = false; |
201 return; | 201 return; |
202 } | 202 } |
203 | 203 |
204 // This field just may be constant. The only case where it will | 204 // This field just may be constant. The only cases where it will |
205 // not be constant is when the field is a *special* static&final field | 205 // not be constant are: |
206 // whose value may change. The three examples are java.lang.System.in, | 206 // |
207 // java.lang.System.out, and java.lang.System.err. | 207 // 1. The field holds a non-perm-space oop. The field is, strictly |
208 // speaking, constant but we cannot embed non-perm-space oops into | |
209 // generated code. For the time being we need to consider the | |
210 // field to be not constant. | |
211 // 2. The field is a *special* static&final field whose value | |
212 // may change. The three examples are java.lang.System.in, | |
213 // java.lang.System.out, and java.lang.System.err. | |
208 | 214 |
209 KlassHandle k = _holder->get_Klass(); | 215 KlassHandle k = _holder->get_Klass(); |
210 assert( SystemDictionary::System_klass() != NULL, "Check once per vm"); | 216 assert( SystemDictionary::System_klass() != NULL, "Check once per vm"); |
211 if( k() == SystemDictionary::System_klass() ) { | 217 if( k() == SystemDictionary::System_klass() ) { |
212 // 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 |