comparison src/share/vm/runtime/compilationPolicy.cpp @ 10664:a9b76e1e5ab3

Fix for OSR regression introduced with 88672775a26c.
author Christian Haeubl <haeubl@ssw.jku.at>
date Tue, 09 Jul 2013 11:19:53 +0200
parents 88672775a26c
children e7d07c9bb779
comparison
equal deleted inserted replaced
10663:204d8d4f91a4 10664:a9b76e1e5ab3
462 462
463 void SimpleCompPolicy::method_back_branch_event(methodHandle m, int bci, JavaThread* thread) { 463 void SimpleCompPolicy::method_back_branch_event(methodHandle m, int bci, JavaThread* thread) {
464 const int comp_level = CompLevel_highest_tier; 464 const int comp_level = CompLevel_highest_tier;
465 const int hot_count = m->backedge_count(); 465 const int hot_count = m->backedge_count();
466 const char* comment = "backedge_count"; 466 const char* comment = "backedge_count";
467 #ifdef GRAALVM
468 reset_counter_for_back_branch_event(m);
469 #endif
470 467
471 if (is_compilation_enabled() && !m->is_not_osr_compilable(comp_level) && can_be_compiled(m, comp_level)) { 468 if (is_compilation_enabled() && !m->is_not_osr_compilable(comp_level) && can_be_compiled(m, comp_level)) {
472 CompileBroker::compile_method(m, bci, comp_level, m, hot_count, comment, thread); 469 CompileBroker::compile_method(m, bci, comp_level, m, hot_count, comment, thread);
473 NOT_PRODUCT(trace_osr_completion(m->lookup_osr_nmethod_for(bci, comp_level, true));) 470 NOT_PRODUCT(trace_osr_completion(m->lookup_osr_nmethod_for(bci, comp_level, true));)
474 } 471 }