src/share/vm/runtime/advancedThresholdPolicy.hpp

changeset 5151
91eba9f82325
parent 4037
da91efe96a93
child 6198
55fb97c4c58d
equal deleted inserted replaced
5130:7ec426e29e4c 5151: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);

mercurial