equal
deleted
inserted
replaced
142 _global_handles = JNIHandleBlock::allocate_block(); |
142 _global_handles = JNIHandleBlock::allocate_block(); |
143 _weak_global_handles = JNIHandleBlock::allocate_block(); |
143 _weak_global_handles = JNIHandleBlock::allocate_block(); |
144 EXCEPTION_MARK; |
144 EXCEPTION_MARK; |
145 // We will never reach the CATCH below since Exceptions::_throw will cause |
145 // We will never reach the CATCH below since Exceptions::_throw will cause |
146 // the VM to exit if an exception is thrown during initialization |
146 // the VM to exit if an exception is thrown during initialization |
147 klassOop k = SystemDictionary::object_klass(); |
147 klassOop k = SystemDictionary::Object_klass(); |
148 _deleted_handle = instanceKlass::cast(k)->allocate_permanent_instance(CATCH); |
148 _deleted_handle = instanceKlass::cast(k)->allocate_permanent_instance(CATCH); |
149 } |
149 } |
150 |
150 |
151 |
151 |
152 bool JNIHandles::is_local_handle(Thread* thread, jobject handle) { |
152 bool JNIHandles::is_local_handle(Thread* thread, jobject handle) { |