diff src/share/vm/ci/ciInstanceKlass.cpp @ 1478:5571b97fc1ec

More JNI global handle clean ups.
author Thomas Wuerthinger <wuerthinger@ssw.jku.at>
date Fri, 26 Nov 2010 19:45:05 +0100
parents 3483ec571caf
children 2d26b0046e0d
line wrap: on
line diff
--- a/src/share/vm/ci/ciInstanceKlass.cpp	Fri Nov 26 13:52:15 2010 +0100
+++ b/src/share/vm/ci/ciInstanceKlass.cpp	Fri Nov 26 19:45:05 2010 +0100
@@ -66,7 +66,7 @@
     Handle h_protection_domain(thread, ik->protection_domain());
     _loader = JNIHandles::make_global(h_loader);
     _protection_domain = JNIHandles::make_global(h_protection_domain);
-    _is_shared = true;
+    _is_shared = !ciObjectFactory::is_initialized();
   }
 
   // Lazy fields get filled in only upon request.