Mercurial > hg > truffle
diff src/share/vm/runtime/advancedThresholdPolicy.hpp @ 10319:91eba9f82325
8012371: Adjust Tiered compile threshold according to available space in code cache
Summary: Added command line parameter to define a threshold at which C1 compilation threshold for is increased.
Reviewed-by: kvn, iveresov
author | anoll |
---|---|
date | Thu, 16 May 2013 15:46:49 +0200 |
parents | da91efe96a93 |
children | de6a9e811145 |
line wrap: on
line diff
--- a/src/share/vm/runtime/advancedThresholdPolicy.hpp Fri May 17 09:10:04 2013 -0700 +++ b/src/share/vm/runtime/advancedThresholdPolicy.hpp Thu May 16 15:46:49 2013 +0200 @@ -201,9 +201,12 @@ // Is method profiled enough? bool is_method_profiled(Method* method); + double _increase_threshold_at_ratio; + protected: void print_specific(EventType type, methodHandle mh, methodHandle imh, int bci, CompLevel level); + void set_increase_threshold_at_ratio() { _increase_threshold_at_ratio = 100 / (100 - (double)IncreaseFirstTierCompileThresholdAt); } void set_start_time(jlong t) { _start_time = t; } jlong start_time() const { return _start_time; }