hotspot/src/share/vm/ci/ciObjectFactory.cpp
changeset 8725 8c1e3dd5fe1b
parent 8676 9098d4e927e1
child 10734 065435337883
--- a/hotspot/src/share/vm/ci/ciObjectFactory.cpp	Fri Mar 18 15:52:42 2011 -0700
+++ b/hotspot/src/share/vm/ci/ciObjectFactory.cpp	Fri Mar 18 16:00:34 2011 -0700
@@ -663,7 +663,7 @@
   if (key->is_perm() && _non_perm_count == 0) {
     return emptyBucket;
   } else if (key->is_instance()) {
-    if (key->klass() == SystemDictionary::Class_klass()) {
+    if (key->klass() == SystemDictionary::Class_klass() && JavaObjectsInPerm) {
       // class mirror instances are always perm
       return emptyBucket;
     }