comparison src/share/vm/ci/ciInstanceKlass.cpp @ 4140:716a2c5c0656

Further reduce diff to HotSpot.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Sun, 18 Dec 2011 01:01:34 +0100
parents 04b9a2566eec
children 33df1aeaebbf
comparison
equal deleted inserted replaced
4139:feb590a8497f 4140:716a2c5c0656
65 } 65 }
66 66
67 Thread *thread = Thread::current(); 67 Thread *thread = Thread::current();
68 if (ciObjectFactory::is_initialized()) { 68 if (ciObjectFactory::is_initialized()) {
69 _loader = JNIHandles::make_local(thread, ik->class_loader()); 69 _loader = JNIHandles::make_local(thread, ik->class_loader());
70 _protection_domain = JNIHandles::make_local(thread, ik->protection_domain()); 70 _protection_domain = JNIHandles::make_local(thread,
71 ik->protection_domain());
71 _is_shared = false; 72 _is_shared = false;
72 } else { 73 } else {
73 Handle h_loader(thread, ik->class_loader()); 74 Handle h_loader(thread, ik->class_loader());
74 Handle h_protection_domain(thread, ik->protection_domain()); 75 Handle h_protection_domain(thread, ik->protection_domain());
75 _loader = JNIHandles::make_global(h_loader); 76 _loader = JNIHandles::make_global(h_loader);
76 _protection_domain = JNIHandles::make_global(h_protection_domain); 77 _protection_domain = JNIHandles::make_global(h_protection_domain);
77 _is_shared = !ciObjectFactory::is_initialized(); 78 _is_shared = true;
78 } 79 }
79 80
80 // Lazy fields get filled in only upon request. 81 // Lazy fields get filled in only upon request.
81 _super = NULL; 82 _super = NULL;
82 _java_mirror = NULL; 83 _java_mirror = NULL;