Mercurial > hg > graal-jvmci-8
comparison src/share/vm/runtime/simpleThresholdPolicy.hpp @ 3837:43f9d800f276
7066339: Tiered: policy should make consistent decisions about osr levels
Summary: Added feedback disabling flag to common(), fixed handling of TieredStopAtLevel.
Reviewed-by: kvn, never
author | iveresov |
---|---|
date | Wed, 20 Jul 2011 18:04:17 -0700 |
parents | 2c359f27615c |
children | 973293defacd |
comparison
equal
deleted
inserted
replaced
3808:341a57af9b0a | 3837:43f9d800f276 |
---|---|
96 virtual int compiler_count(CompLevel comp_level) { | 96 virtual int compiler_count(CompLevel comp_level) { |
97 if (is_c1_compile(comp_level)) return c1_count(); | 97 if (is_c1_compile(comp_level)) return c1_count(); |
98 if (is_c2_compile(comp_level)) return c2_count(); | 98 if (is_c2_compile(comp_level)) return c2_count(); |
99 return 0; | 99 return 0; |
100 } | 100 } |
101 virtual CompLevel initial_compile_level() { return MIN2((CompLevel)TieredStopAtLevel, CompLevel_initial_compile); } | |
101 virtual void do_safepoint_work() { } | 102 virtual void do_safepoint_work() { } |
102 virtual void delay_compilation(methodOop method) { } | 103 virtual void delay_compilation(methodOop method) { } |
103 virtual void disable_compilation(methodOop method) { } | 104 virtual void disable_compilation(methodOop method) { } |
104 virtual void reprofile(ScopeDesc* trap_scope, bool is_osr); | 105 virtual void reprofile(ScopeDesc* trap_scope, bool is_osr); |
105 virtual nmethod* event(methodHandle method, methodHandle inlinee, | 106 virtual nmethod* event(methodHandle method, methodHandle inlinee, |