src/share/vm/ci/ciReplay.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File hotspot Sdiff src/share/vm/ci

src/share/vm/ci/ciReplay.cpp

Print this page
rev 10841 : 8153013: BlockingCompilation test times out
Summary: Task has no invocation count and get stale at once
Reviewed-by: kvn, iveresov, twisti


 535     InstanceKlass* ik = method->method_holder();
 536     ik->initialize(THREAD);
 537     if (HAS_PENDING_EXCEPTION) {
 538       oop throwable = PENDING_EXCEPTION;
 539       java_lang_Throwable::print(throwable, tty);
 540       tty->cr();
 541       if (ReplayIgnoreInitErrors) {
 542         CLEAR_PENDING_EXCEPTION;
 543         ik->set_init_state(InstanceKlass::fully_initialized);
 544       } else {
 545         return;
 546       }
 547     }
 548     // Make sure the existence of a prior compile doesn't stop this one
 549     nmethod* nm = (entry_bci != InvocationEntryBci) ? method->lookup_osr_nmethod_for(entry_bci, comp_level, true) : method->code();
 550     if (nm != NULL) {
 551       nm->make_not_entrant();
 552     }
 553     replay_state = this;
 554     CompileBroker::compile_method(method, entry_bci, comp_level,
 555                                   methodHandle(), 0, "replay", THREAD);
 556     replay_state = NULL;
 557     reset();
 558   }
 559 
 560   // ciMethod <klass> <name> <signature> <invocation_counter> <backedge_counter> <interpreter_invocation_count> <interpreter_throwout_count> <instructions_size>
 561   //
 562   //
 563   void process_ciMethod(TRAPS) {
 564     Method* method = parse_method(CHECK);
 565     if (had_error()) return;
 566     ciMethodRecord* rec = new_ciMethod(method);
 567     rec->_invocation_counter = parse_int("invocation_counter");
 568     rec->_backedge_counter = parse_int("backedge_counter");
 569     rec->_interpreter_invocation_count = parse_int("interpreter_invocation_count");
 570     rec->_interpreter_throwout_count = parse_int("interpreter_throwout_count");
 571     rec->_instructions_size = parse_int("instructions_size");
 572   }
 573 
 574   // ciMethodData <klass> <name> <signature> <state> <current mileage> orig <length> # # ... data <length> # # ... oops <length> # ... methods <length>
 575   void process_ciMethodData(TRAPS) {




 535     InstanceKlass* ik = method->method_holder();
 536     ik->initialize(THREAD);
 537     if (HAS_PENDING_EXCEPTION) {
 538       oop throwable = PENDING_EXCEPTION;
 539       java_lang_Throwable::print(throwable, tty);
 540       tty->cr();
 541       if (ReplayIgnoreInitErrors) {
 542         CLEAR_PENDING_EXCEPTION;
 543         ik->set_init_state(InstanceKlass::fully_initialized);
 544       } else {
 545         return;
 546       }
 547     }
 548     // Make sure the existence of a prior compile doesn't stop this one
 549     nmethod* nm = (entry_bci != InvocationEntryBci) ? method->lookup_osr_nmethod_for(entry_bci, comp_level, true) : method->code();
 550     if (nm != NULL) {
 551       nm->make_not_entrant();
 552     }
 553     replay_state = this;
 554     CompileBroker::compile_method(method, entry_bci, comp_level,
 555                                   methodHandle(), 0, CompileTask::Reason_Replay, THREAD);
 556     replay_state = NULL;
 557     reset();
 558   }
 559 
 560   // ciMethod <klass> <name> <signature> <invocation_counter> <backedge_counter> <interpreter_invocation_count> <interpreter_throwout_count> <instructions_size>
 561   //
 562   //
 563   void process_ciMethod(TRAPS) {
 564     Method* method = parse_method(CHECK);
 565     if (had_error()) return;
 566     ciMethodRecord* rec = new_ciMethod(method);
 567     rec->_invocation_counter = parse_int("invocation_counter");
 568     rec->_backedge_counter = parse_int("backedge_counter");
 569     rec->_interpreter_invocation_count = parse_int("interpreter_invocation_count");
 570     rec->_interpreter_throwout_count = parse_int("interpreter_throwout_count");
 571     rec->_instructions_size = parse_int("instructions_size");
 572   }
 573 
 574   // ciMethodData <klass> <name> <signature> <state> <current mileage> orig <length> # # ... data <length> # # ... oops <length> # ... methods <length>
 575   void process_ciMethodData(TRAPS) {


src/share/vm/ci/ciReplay.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File