Mercurial > hg > truffle
comparison src/share/vm/ci/ciObjectFactory.cpp @ 2376:c7f3d0b4570f
7017732: move static fields into Class to prepare for perm gen removal
Reviewed-by: kvn, coleenp, twisti, stefank
author | never |
---|---|
date | Fri, 18 Mar 2011 16:00:34 -0700 |
parents | 8033953d67ff |
children | 0654ee04b214 5eb9169b1a14 |
comparison
equal
deleted
inserted
replaced
2375:d673ef06fe96 | 2376:c7f3d0b4570f |
---|---|
661 // Thus, there might be a matching perm object in the table. | 661 // Thus, there might be a matching perm object in the table. |
662 // If there is, this probe must find it. | 662 // If there is, this probe must find it. |
663 if (key->is_perm() && _non_perm_count == 0) { | 663 if (key->is_perm() && _non_perm_count == 0) { |
664 return emptyBucket; | 664 return emptyBucket; |
665 } else if (key->is_instance()) { | 665 } else if (key->is_instance()) { |
666 if (key->klass() == SystemDictionary::Class_klass()) { | 666 if (key->klass() == SystemDictionary::Class_klass() && JavaObjectsInPerm) { |
667 // class mirror instances are always perm | 667 // class mirror instances are always perm |
668 return emptyBucket; | 668 return emptyBucket; |
669 } | 669 } |
670 // fall through to probe | 670 // fall through to probe |
671 } else if (key->is_array()) { | 671 } else if (key->is_array()) { |