Mercurial > hg > truffle
comparison src/share/vm/runtime/compilationPolicy.cpp @ 4137:04b9a2566eec
Merge with hsx23/hotspot.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Sat, 17 Dec 2011 21:40:27 +0100 |
parents | 409ef3a68dc8 2c359f27615c |
children | 33df1aeaebbf |
comparison
equal
deleted
inserted
replaced
3737:9dc19b7d89a3 | 4137:04b9a2566eec |
---|---|
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()) { |