comparison src/share/vm/ci/ciInstanceKlass.cpp @ 3668:46f211fe010c

Removed global handle usage in ci interface.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Fri, 18 Nov 2011 13:30:47 +0100
parents 75a99b4f1c98
children 04b9a2566eec
comparison
equal deleted inserted replaced
3667:e755289380e3 3668:46f211fe010c
62 for (int i = 0; i < implementors_limit; i++) { 62 for (int i = 0; i < implementors_limit; i++) {
63 _implementors[i] = NULL; // we will fill these lazily 63 _implementors[i] = NULL; // we will fill these lazily
64 } 64 }
65 65
66 Thread *thread = Thread::current(); 66 Thread *thread = Thread::current();
67 if (ciObjectFactory::is_initialized() && !UseGraal) { 67 if (ciObjectFactory::is_initialized()) {
68 _loader = JNIHandles::make_local(thread, ik->class_loader()); 68 _loader = JNIHandles::make_local(thread, ik->class_loader());
69 _protection_domain = JNIHandles::make_local(thread, ik->protection_domain()); 69 _protection_domain = JNIHandles::make_local(thread, ik->protection_domain());
70 _is_shared = false; 70 _is_shared = false;
71 } else { 71 } else {
72 Handle h_loader(thread, ik->class_loader()); 72 Handle h_loader(thread, ik->class_loader());