789 InstanceKlass* ik = method->method_holder();
790 ik->initialize(THREAD);
791 if (HAS_PENDING_EXCEPTION) {
792 oop throwable = PENDING_EXCEPTION;
793 java_lang_Throwable::print(throwable, tty);
794 tty->cr();
795 if (ReplayIgnoreInitErrors) {
796 CLEAR_PENDING_EXCEPTION;
797 ik->set_init_state(InstanceKlass::fully_initialized);
798 } else {
799 return;
800 }
801 }
802 // Make sure the existence of a prior compile doesn't stop this one
803 nmethod* nm = (entry_bci != InvocationEntryBci) ? method->lookup_osr_nmethod_for(entry_bci, comp_level, true) : method->code();
804 if (nm != nullptr) {
805 nm->make_not_entrant();
806 }
807 replay_state = this;
808 CompileBroker::compile_method(methodHandle(THREAD, method), entry_bci, comp_level,
809 methodHandle(), 0, CompileTask::Reason_Replay, THREAD);
810 replay_state = nullptr;
811 }
812
813 // ciMethod <klass> <name> <signature> <invocation_counter> <backedge_counter> <interpreter_invocation_count> <interpreter_throwout_count> <instructions_size>
814 void process_ciMethod(TRAPS) {
815 Method* method = parse_method(CHECK);
816 if (had_error()) return;
817 ciMethodRecord* rec = new_ciMethod(method);
818 rec->_invocation_counter = parse_int("invocation_counter");
819 rec->_backedge_counter = parse_int("backedge_counter");
820 rec->_interpreter_invocation_count = parse_int("interpreter_invocation_count");
821 rec->_interpreter_throwout_count = parse_int("interpreter_throwout_count");
822 rec->_instructions_size = parse_int("instructions_size");
823 }
824
825 // ciMethodData <klass> <name> <signature> <state> <invocation_counter> orig <length> <byte>* data <length> <ptr>* oops <length> (<offset> <klass>)* methods <length> (<offset> <klass> <name> <signature>)*
826 void process_ciMethodData(TRAPS) {
827 Method* method = parse_method(CHECK);
828 if (had_error()) return;
829 /* just copied from Method, to build interpret data*/
|
789 InstanceKlass* ik = method->method_holder();
790 ik->initialize(THREAD);
791 if (HAS_PENDING_EXCEPTION) {
792 oop throwable = PENDING_EXCEPTION;
793 java_lang_Throwable::print(throwable, tty);
794 tty->cr();
795 if (ReplayIgnoreInitErrors) {
796 CLEAR_PENDING_EXCEPTION;
797 ik->set_init_state(InstanceKlass::fully_initialized);
798 } else {
799 return;
800 }
801 }
802 // Make sure the existence of a prior compile doesn't stop this one
803 nmethod* nm = (entry_bci != InvocationEntryBci) ? method->lookup_osr_nmethod_for(entry_bci, comp_level, true) : method->code();
804 if (nm != nullptr) {
805 nm->make_not_entrant();
806 }
807 replay_state = this;
808 CompileBroker::compile_method(methodHandle(THREAD, method), entry_bci, comp_level,
809 methodHandle(), 0, true, CompileTask::Reason_Replay, THREAD);
810 replay_state = nullptr;
811 }
812
813 // ciMethod <klass> <name> <signature> <invocation_counter> <backedge_counter> <interpreter_invocation_count> <interpreter_throwout_count> <instructions_size>
814 void process_ciMethod(TRAPS) {
815 Method* method = parse_method(CHECK);
816 if (had_error()) return;
817 ciMethodRecord* rec = new_ciMethod(method);
818 rec->_invocation_counter = parse_int("invocation_counter");
819 rec->_backedge_counter = parse_int("backedge_counter");
820 rec->_interpreter_invocation_count = parse_int("interpreter_invocation_count");
821 rec->_interpreter_throwout_count = parse_int("interpreter_throwout_count");
822 rec->_instructions_size = parse_int("instructions_size");
823 }
824
825 // ciMethodData <klass> <name> <signature> <state> <invocation_counter> orig <length> <byte>* data <length> <ptr>* oops <length> (<offset> <klass>)* methods <length> (<offset> <klass> <name> <signature>)*
826 void process_ciMethodData(TRAPS) {
827 Method* method = parse_method(CHECK);
828 if (had_error()) return;
829 /* just copied from Method, to build interpret data*/
|