src/share/vm/oops/method.hpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File hotspot Cdiff src/share/vm/oops/method.hpp

src/share/vm/oops/method.hpp

Print this page
rev 6404 : 8023461: Thread holding lock at safepoint that vm can block on: MethodCompileQueue_lock
Reviewed-by: kvn, iveresov

*** 198,211 **** void clear_breakpoint(int bci); void clear_all_breakpoints(); // Tracking number of breakpoints, for fullspeed debugging. // Only mutated by VM thread. u2 number_of_breakpoints() const { ! if (method_counters() == NULL) { return 0; } else { ! return method_counters()->number_of_breakpoints(); } } void incr_number_of_breakpoints(TRAPS) { MethodCounters* mcs = get_method_counters(CHECK); if (mcs != NULL) { --- 198,212 ---- void clear_breakpoint(int bci); void clear_all_breakpoints(); // Tracking number of breakpoints, for fullspeed debugging. // Only mutated by VM thread. u2 number_of_breakpoints() const { ! MethodCounters* mcs = method_counters(); ! if (mcs == NULL) { return 0; } else { ! return mcs->number_of_breakpoints(); } } void incr_number_of_breakpoints(TRAPS) { MethodCounters* mcs = get_method_counters(CHECK); if (mcs != NULL) {
*** 218,229 **** mcs->decr_number_of_breakpoints(); } } // Initialization only void clear_number_of_breakpoints() { ! if (method_counters() != NULL) { ! method_counters()->clear_number_of_breakpoints(); } } // index into InstanceKlass methods() array // note: also used by jfr --- 219,231 ---- mcs->decr_number_of_breakpoints(); } } // Initialization only void clear_number_of_breakpoints() { ! MethodCounters* mcs = method_counters(); ! if (mcs != NULL) { ! mcs->clear_number_of_breakpoints(); } } // index into InstanceKlass methods() array // note: also used by jfr
*** 266,279 **** mcs->interpreter_throwout_increment(); } } int interpreter_throwout_count() const { ! if (method_counters() == NULL) { return 0; } else { ! return method_counters()->interpreter_throwout_count(); } } // size of parameters int size_of_parameters() const { return constMethod()->size_of_parameters(); } --- 268,282 ---- mcs->interpreter_throwout_increment(); } } int interpreter_throwout_count() const { ! MethodCounters* mcs = method_counters(); ! if (mcs == NULL) { return 0; } else { ! return mcs->interpreter_throwout_count(); } } // size of parameters int size_of_parameters() const { return constMethod()->size_of_parameters(); }
*** 344,373 **** return 0; } else { return method_counters()->interpreter_invocation_count(); } } ! void set_prev_event_count(int count, TRAPS) { ! MethodCounters* mcs = get_method_counters(CHECK); if (mcs != NULL) { mcs->set_interpreter_invocation_count(count); } } jlong prev_time() const { ! return method_counters() == NULL ? 0 : method_counters()->prev_time(); } ! void set_prev_time(jlong time, TRAPS) { ! MethodCounters* mcs = get_method_counters(CHECK); if (mcs != NULL) { mcs->set_prev_time(time); } } float rate() const { ! return method_counters() == NULL ? 0 : method_counters()->rate(); } ! void set_rate(float rate, TRAPS) { ! MethodCounters* mcs = get_method_counters(CHECK); if (mcs != NULL) { mcs->set_rate(rate); } } #endif --- 347,378 ---- return 0; } else { return method_counters()->interpreter_invocation_count(); } } ! void set_prev_event_count(int count) { ! MethodCounters* mcs = method_counters(); if (mcs != NULL) { mcs->set_interpreter_invocation_count(count); } } jlong prev_time() const { ! MethodCounters* mcs = method_counters(); ! return mcs == NULL ? 0 : mcs->prev_time(); } ! void set_prev_time(jlong time) { ! MethodCounters* mcs = method_counters(); if (mcs != NULL) { mcs->set_prev_time(time); } } float rate() const { ! MethodCounters* mcs = method_counters(); ! return mcs == NULL ? 0 : mcs->rate(); } ! void set_rate(float rate) { ! MethodCounters* mcs = method_counters(); if (mcs != NULL) { mcs->set_rate(rate); } } #endif
*** 381,393 **** static void build_interpreter_method_data(methodHandle method, TRAPS); static MethodCounters* build_method_counters(Method* m, TRAPS); int interpreter_invocation_count() { ! if (TieredCompilation) return invocation_count(); ! else return (method_counters() == NULL) ? 0 : ! method_counters()->interpreter_invocation_count(); } int increment_interpreter_invocation_count(TRAPS) { if (TieredCompilation) ShouldNotReachHere(); MethodCounters* mcs = get_method_counters(CHECK_0); return (mcs == NULL) ? 0 : mcs->increment_interpreter_invocation_count(); --- 386,401 ---- static void build_interpreter_method_data(methodHandle method, TRAPS); static MethodCounters* build_method_counters(Method* m, TRAPS); int interpreter_invocation_count() { ! if (TieredCompilation) { ! return invocation_count(); ! } else { ! MethodCounters* mcs = method_counters(); ! return (mcs == NULL) ? 0 : mcs->interpreter_invocation_count(); ! } } int increment_interpreter_invocation_count(TRAPS) { if (TieredCompilation) ShouldNotReachHere(); MethodCounters* mcs = get_method_counters(CHECK_0); return (mcs == NULL) ? 0 : mcs->increment_interpreter_invocation_count();
src/share/vm/oops/method.hpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File