< prev index next >

src/hotspot/share/oops/methodCounters.hpp

Print this page

        

*** 38,48 **** // If you add a new field that points to any metaspace object, you // must add this field to MethodCounters::metaspace_pointers_do(). #if INCLUDE_AOT Method* _method; // Back link to Method #endif ! #if defined(COMPILER2) || INCLUDE_JVMCI int _interpreter_invocation_count; // Count of times invoked (reused as prev_event_count in tiered) u2 _interpreter_throwout_count; // Count of times method was exited via exception while interpreting #endif #if INCLUDE_JVMTI u2 _number_of_breakpoints; // fullspeed debugging support --- 38,48 ---- // If you add a new field that points to any metaspace object, you // must add this field to MethodCounters::metaspace_pointers_do(). #if INCLUDE_AOT Method* _method; // Back link to Method #endif ! #if COMPILER2_OR_JVMCI int _interpreter_invocation_count; // Count of times invoked (reused as prev_event_count in tiered) u2 _interpreter_throwout_count; // Count of times method was exited via exception while interpreting #endif #if INCLUDE_JVMTI u2 _number_of_breakpoints; // fullspeed debugging support
*** 128,138 **** } void metaspace_pointers_do(MetaspaceClosure* it); MetaspaceObj::Type type() const { return MethodCountersType; } void clear_counters(); ! #if defined(COMPILER2) || INCLUDE_JVMCI int interpreter_invocation_count() { return _interpreter_invocation_count; } void set_interpreter_invocation_count(int count) { --- 128,138 ---- } void metaspace_pointers_do(MetaspaceClosure* it); MetaspaceObj::Type type() const { return MethodCountersType; } void clear_counters(); ! #if COMPILER2_OR_JVMCI int interpreter_invocation_count() { return _interpreter_invocation_count; } void set_interpreter_invocation_count(int count) {
*** 152,162 **** } void set_interpreter_throwout_count(int count) { _interpreter_throwout_count = count; } ! #else // defined(COMPILER2) || INCLUDE_JVMCI int interpreter_invocation_count() { return 0; } void set_interpreter_invocation_count(int count) { --- 152,162 ---- } void set_interpreter_throwout_count(int count) { _interpreter_throwout_count = count; } ! #else // COMPILER2_OR_JVMCI int interpreter_invocation_count() { return 0; } void set_interpreter_invocation_count(int count) {
*** 168,178 **** } void set_interpreter_throwout_count(int count) { assert(count == 0, "count must be 0"); } ! #endif // defined(COMPILER2) || INCLUDE_JVMCI #if INCLUDE_JVMTI u2 number_of_breakpoints() const { return _number_of_breakpoints; } void incr_number_of_breakpoints() { ++_number_of_breakpoints; } void decr_number_of_breakpoints() { --_number_of_breakpoints; } --- 168,178 ---- } void set_interpreter_throwout_count(int count) { assert(count == 0, "count must be 0"); } ! #endif // COMPILER2_OR_JVMCI #if INCLUDE_JVMTI u2 number_of_breakpoints() const { return _number_of_breakpoints; } void incr_number_of_breakpoints() { ++_number_of_breakpoints; } void decr_number_of_breakpoints() { --_number_of_breakpoints; }
*** 211,238 **** static ByteSize nmethod_age_offset() { return byte_offset_of(MethodCounters, _nmethod_age); } ! #if defined(COMPILER2) || INCLUDE_JVMCI static ByteSize interpreter_invocation_counter_offset() { return byte_offset_of(MethodCounters, _interpreter_invocation_count); } static int interpreter_invocation_counter_offset_in_bytes() { return offset_of(MethodCounters, _interpreter_invocation_count); } ! #else // defined(COMPILER2) || INCLUDE_JVMCI static ByteSize interpreter_invocation_counter_offset() { ShouldNotReachHere(); return in_ByteSize(0); } ! #endif // defined(COMPILER2) || INCLUDE_JVMCI static ByteSize invocation_counter_offset() { return byte_offset_of(MethodCounters, _invocation_counter); } --- 211,238 ---- static ByteSize nmethod_age_offset() { return byte_offset_of(MethodCounters, _nmethod_age); } ! #if COMPILER2_OR_JVMCI static ByteSize interpreter_invocation_counter_offset() { return byte_offset_of(MethodCounters, _interpreter_invocation_count); } static int interpreter_invocation_counter_offset_in_bytes() { return offset_of(MethodCounters, _interpreter_invocation_count); } ! #else // COMPILER2_OR_JVMCI static ByteSize interpreter_invocation_counter_offset() { ShouldNotReachHere(); return in_ByteSize(0); } ! #endif // COMPILER2_OR_JVMCI static ByteSize invocation_counter_offset() { return byte_offset_of(MethodCounters, _invocation_counter); }
< prev index next >