comparison src/share/vm/runtime/compilationPolicy.cpp @ 3791:2c359f27615c

7057120: Tiered: Allow C1 to inline methods with loops Summary: Recompile the enclosing methods without inlining of the method that has OSRed to level 4 or recompile the enclosing method at level 4. Reviewed-by: kvn, never
author iveresov
date Fri, 01 Jul 2011 10:37:37 -0700
parents e2eb7f986c64
children 04b9a2566eec 20334ed5ed3c
comparison
equal deleted inserted replaced
3790:6f6e91603a45 3791:2c359f27615c
304 else 304 else
305 target = (uint)( (ProfileMaturityPercentage * CompileThreshold) / 100 ); 305 target = (uint)( (ProfileMaturityPercentage * CompileThreshold) / 100 );
306 return (current >= initial + target); 306 return (current >= initial + target);
307 } 307 }
308 308
309 nmethod* NonTieredCompPolicy::event(methodHandle method, methodHandle inlinee, int branch_bci, int bci, CompLevel comp_level, TRAPS) { 309 nmethod* NonTieredCompPolicy::event(methodHandle method, methodHandle inlinee, int branch_bci, int bci, CompLevel comp_level, nmethod* nm, TRAPS) {
310 assert(comp_level == CompLevel_none, "This should be only called from the interpreter"); 310 assert(comp_level == CompLevel_none, "This should be only called from the interpreter");
311 NOT_PRODUCT(trace_frequency_counter_overflow(method, branch_bci, bci)); 311 NOT_PRODUCT(trace_frequency_counter_overflow(method, branch_bci, bci));
312 if (JvmtiExport::can_post_interpreter_events()) { 312 if (JvmtiExport::can_post_interpreter_events()) {
313 assert(THREAD->is_Java_thread(), "Wrong type of thread"); 313 assert(THREAD->is_Java_thread(), "Wrong type of thread");
314 if (((JavaThread*)THREAD)->is_interp_only_mode()) { 314 if (((JavaThread*)THREAD)->is_interp_only_mode()) {