equal
deleted
inserted
replaced
33 #include "jvmci/jvmciRuntime.hpp" |
33 #include "jvmci/jvmciRuntime.hpp" |
34 #endif |
34 #endif |
35 |
35 |
36 #ifdef TIERED |
36 #ifdef TIERED |
37 |
37 |
38 void SimpleThresholdPolicy::print_counters(const char* prefix, methodHandle mh) { |
38 void SimpleThresholdPolicy::print_counters(const char* prefix, const methodHandle& mh) { |
39 int invocation_count = mh->invocation_count(); |
39 int invocation_count = mh->invocation_count(); |
40 int backedge_count = mh->backedge_count(); |
40 int backedge_count = mh->backedge_count(); |
41 MethodData* mdh = mh->method_data(); |
41 MethodData* mdh = mh->method_data(); |
42 int mdo_invocations = 0, mdo_backedges = 0; |
42 int mdo_invocations = 0, mdo_backedges = 0; |
43 int mdo_invocations_start = 0, mdo_backedges_start = 0; |
43 int mdo_invocations_start = 0, mdo_backedges_start = 0; |
54 tty->print(" %smax levels=%d,%d", prefix, |
54 tty->print(" %smax levels=%d,%d", prefix, |
55 mh->highest_comp_level(), mh->highest_osr_comp_level()); |
55 mh->highest_comp_level(), mh->highest_osr_comp_level()); |
56 } |
56 } |
57 |
57 |
58 // Print an event. |
58 // Print an event. |
59 void SimpleThresholdPolicy::print_event(EventType type, methodHandle mh, methodHandle imh, |
59 void SimpleThresholdPolicy::print_event(EventType type, const methodHandle& mh, const methodHandle& imh, |
60 int bci, CompLevel level) { |
60 int bci, CompLevel level) { |
61 bool inlinee_event = mh() != imh(); |
61 bool inlinee_event = mh() != imh(); |
62 |
62 |
63 ttyLocker tty_lock; |
63 ttyLocker tty_lock; |
64 tty->print("%lf: [", os::elapsedTime()); |
64 tty->print("%lf: [", os::elapsedTime()); |