hotspot Udiff src/share/vm/compiler/compileTask.cpp (original) (raw)
@@ -84,13 +84,14 @@ int hot_count, CompileTask::CompileReason compile_reason, bool is_blocking) { assert(!_lock->is_locked(), "bad locking");
- Thread* thread = Thread::current(); _compile_id = compile_id; _method = method();
- _method_holder = JNIHandles::make_global(method->method_holder()->klass_holder());
- _method_holder = JNIHandles::make_global(Handle(thread, method->method_holder()->klass_holder())); _osr_bci = osr_bci; _is_blocking = is_blocking; JVMCI_ONLY(_has_waiter = CompileBroker::compiler(comp_level)->is_jvmci();) JVMCI_ONLY(_jvmci_compiler_thread = NULL;) _comp_level = comp_level;
@@ -113,11 +114,11 @@ if (hot_method == method) { _hot_method = _method; } else { _hot_method = hot_method(); // only add loader or mirror if different from _method_holder
_hot_method_holder = JNIHandles::make_global(hot_method->method_holder()->klass_holder());
_hot_method_holder = JNIHandles::make_global(Handle(thread, hot_method->method_holder()->klass_holder())); }
} }
_next = NULL;