Mercurial > hg > graal-jvmci-8
comparison 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 |
comparison
equal
deleted
inserted
replaced
10298:7ec426e29e4c | 10319:91eba9f82325 |
---|---|
199 // Create MDO if necessary. | 199 // Create MDO if necessary. |
200 void create_mdo(methodHandle mh, JavaThread* thread); | 200 void create_mdo(methodHandle mh, JavaThread* thread); |
201 // Is method profiled enough? | 201 // Is method profiled enough? |
202 bool is_method_profiled(Method* method); | 202 bool is_method_profiled(Method* method); |
203 | 203 |
204 double _increase_threshold_at_ratio; | |
205 | |
204 protected: | 206 protected: |
205 void print_specific(EventType type, methodHandle mh, methodHandle imh, int bci, CompLevel level); | 207 void print_specific(EventType type, methodHandle mh, methodHandle imh, int bci, CompLevel level); |
206 | 208 |
209 void set_increase_threshold_at_ratio() { _increase_threshold_at_ratio = 100 / (100 - (double)IncreaseFirstTierCompileThresholdAt); } | |
207 void set_start_time(jlong t) { _start_time = t; } | 210 void set_start_time(jlong t) { _start_time = t; } |
208 jlong start_time() const { return _start_time; } | 211 jlong start_time() const { return _start_time; } |
209 | 212 |
210 // Submit a given method for compilation (and update the rate). | 213 // Submit a given method for compilation (and update the rate). |
211 virtual void submit_compile(methodHandle mh, int bci, CompLevel level, JavaThread* thread); | 214 virtual void submit_compile(methodHandle mh, int bci, CompLevel level, JavaThread* thread); |