Mercurial > hg > graal-jvmci-8
diff src/share/vm/oops/methodCounters.cpp @ 20528:f0bedf980c65
Merge
author | asaha |
---|---|
date | Tue, 16 Sep 2014 13:55:38 -0700 |
parents | 631667807de7 |
children | 7848fc12602b |
line wrap: on
line diff
--- a/src/share/vm/oops/methodCounters.cpp Mon Sep 15 16:39:00 2014 -0400 +++ b/src/share/vm/oops/methodCounters.cpp Tue Sep 16 13:55:38 2014 -0700 @@ -34,4 +34,40 @@ backedge_counter()->reset(); set_interpreter_throwout_count(0); set_interpreter_invocation_count(0); +#ifdef TIERED + set_prev_time(0); + set_rate(0); + set_highest_comp_level(0); + set_highest_osr_comp_level(0); +#endif } + + +int MethodCounters::highest_comp_level() const { +#ifdef TIERED + return _highest_comp_level; +#else + return CompLevel_none; +#endif +} + +void MethodCounters::set_highest_comp_level(int level) { +#ifdef TIERED + _highest_comp_level = level; +#endif +} + +int MethodCounters::highest_osr_comp_level() const { +#ifdef TIERED + return _highest_osr_comp_level; +#else + return CompLevel_none; +#endif +} + +void MethodCounters::set_highest_osr_comp_level(int level) { +#ifdef TIERED + _highest_osr_comp_level = level; +#endif +} +