Mercurial > hg > graal-jvmci-8
comparison src/share/vm/oops/methodCounters.cpp @ 20528:f0bedf980c65
Merge
author | asaha |
---|---|
date | Tue, 16 Sep 2014 13:55:38 -0700 |
parents | 631667807de7 |
children | 7848fc12602b |
comparison
equal
deleted
inserted
replaced
20527:8cb56c8cb30d | 20528:f0bedf980c65 |
---|---|
32 void MethodCounters::clear_counters() { | 32 void MethodCounters::clear_counters() { |
33 invocation_counter()->reset(); | 33 invocation_counter()->reset(); |
34 backedge_counter()->reset(); | 34 backedge_counter()->reset(); |
35 set_interpreter_throwout_count(0); | 35 set_interpreter_throwout_count(0); |
36 set_interpreter_invocation_count(0); | 36 set_interpreter_invocation_count(0); |
37 #ifdef TIERED | |
38 set_prev_time(0); | |
39 set_rate(0); | |
40 set_highest_comp_level(0); | |
41 set_highest_osr_comp_level(0); | |
42 #endif | |
37 } | 43 } |
44 | |
45 | |
46 int MethodCounters::highest_comp_level() const { | |
47 #ifdef TIERED | |
48 return _highest_comp_level; | |
49 #else | |
50 return CompLevel_none; | |
51 #endif | |
52 } | |
53 | |
54 void MethodCounters::set_highest_comp_level(int level) { | |
55 #ifdef TIERED | |
56 _highest_comp_level = level; | |
57 #endif | |
58 } | |
59 | |
60 int MethodCounters::highest_osr_comp_level() const { | |
61 #ifdef TIERED | |
62 return _highest_osr_comp_level; | |
63 #else | |
64 return CompLevel_none; | |
65 #endif | |
66 } | |
67 | |
68 void MethodCounters::set_highest_osr_comp_level(int level) { | |
69 #ifdef TIERED | |
70 _highest_osr_comp_level = level; | |
71 #endif | |
72 } | |
73 |