equal
deleted
inserted
replaced
595 CompiledMethod* nm = (entry_bci != InvocationEntryBci) ? method->lookup_osr_nmethod_for(entry_bci, comp_level, true) : method->code(); |
595 CompiledMethod* nm = (entry_bci != InvocationEntryBci) ? method->lookup_osr_nmethod_for(entry_bci, comp_level, true) : method->code(); |
596 if (nm != NULL) { |
596 if (nm != NULL) { |
597 nm->make_not_entrant(); |
597 nm->make_not_entrant(); |
598 } |
598 } |
599 replay_state = this; |
599 replay_state = this; |
600 CompileBroker::compile_method(method, entry_bci, comp_level, |
600 CompileBroker::compile_method(methodHandle(THREAD, method), entry_bci, comp_level, |
601 methodHandle(), 0, CompileTask::Reason_Replay, THREAD); |
601 methodHandle(), 0, CompileTask::Reason_Replay, THREAD); |
602 replay_state = NULL; |
602 replay_state = NULL; |
603 reset(); |
603 reset(); |
604 } |
604 } |
605 |
605 |
632 // Grab a lock here to prevent multiple |
632 // Grab a lock here to prevent multiple |
633 // MethodData*s from being created. |
633 // MethodData*s from being created. |
634 MutexLocker ml(MethodData_lock, THREAD); |
634 MutexLocker ml(MethodData_lock, THREAD); |
635 if (method->method_data() == NULL) { |
635 if (method->method_data() == NULL) { |
636 ClassLoaderData* loader_data = method->method_holder()->class_loader_data(); |
636 ClassLoaderData* loader_data = method->method_holder()->class_loader_data(); |
637 MethodData* method_data = MethodData::allocate(loader_data, method, CHECK); |
637 MethodData* method_data = MethodData::allocate(loader_data, methodHandle(THREAD, method), CHECK); |
638 method->set_method_data(method_data); |
638 method->set_method_data(method_data); |
639 } |
639 } |
640 } |
640 } |
641 |
641 |
642 // collect and record all the needed information for later |
642 // collect and record all the needed information for later |