Mercurial > hg > truffle
comparison src/share/vm/runtime/simpleThresholdPolicy.cpp @ 14909:4ca6dc0799b6
Backout jdk9 merge
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Tue, 01 Apr 2014 13:57:07 +0200 |
parents | 63a4eb8bcd23 |
children | 52b4284cb496 |
comparison
equal
deleted
inserted
replaced
14908:8db6e76cb658 | 14909:4ca6dc0799b6 |
---|---|
385 // with a regular entry from here. | 385 // with a regular entry from here. |
386 void SimpleThresholdPolicy::method_back_branch_event(methodHandle mh, methodHandle imh, | 386 void SimpleThresholdPolicy::method_back_branch_event(methodHandle mh, methodHandle imh, |
387 int bci, CompLevel level, nmethod* nm, JavaThread* thread) { | 387 int bci, CompLevel level, nmethod* nm, JavaThread* thread) { |
388 // If the method is already compiling, quickly bail out. | 388 // If the method is already compiling, quickly bail out. |
389 if (is_compilation_enabled() && !CompileBroker::compilation_is_in_queue(mh, bci)) { | 389 if (is_compilation_enabled() && !CompileBroker::compilation_is_in_queue(mh, bci)) { |
390 // Use loop event as an opportunity to also check there's been | 390 // Use loop event as an opportinity to also check there's been |
391 // enough calls. | 391 // enough calls. |
392 CompLevel cur_level = comp_level(mh()); | 392 CompLevel cur_level = comp_level(mh()); |
393 CompLevel next_level = call_event(mh(), cur_level); | 393 CompLevel next_level = call_event(mh(), cur_level); |
394 CompLevel next_osr_level = loop_event(mh(), level); | 394 CompLevel next_osr_level = loop_event(mh(), level); |
395 | 395 |