src/share/vm/oops/methodCounters.hpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File
*** old/src/share/vm/oops/methodCounters.hpp	Mon Oct 31 17:47:01 2016
--- new/src/share/vm/oops/methodCounters.hpp	Mon Oct 31 17:47:01 2016

*** 32,41 **** --- 32,42 ---- class MethodCounters: public MetaspaceObj { friend class VMStructs; friend class JVMCIVMStructs; private: + Method* _method; // Back link to Method #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
*** 62,72 **** --- 63,74 ---- jlong _prev_time; // Previous time the rate was acquired u1 _highest_comp_level; // Highest compile level this method has ever seen. u1 _highest_osr_comp_level; // Same for OSR level #endif ! MethodCounters(methodHandle mh) : _nmethod_age(INT_MAX) ! MethodCounters(methodHandle mh) : _method(mh()), + _nmethod_age(INT_MAX) #ifdef TIERED , _rate(0), _prev_time(0), _highest_comp_level(0), _highest_osr_comp_level(0)
*** 105,114 **** --- 107,118 ---- static MethodCounters* allocate(methodHandle mh, TRAPS); void deallocate_contents(ClassLoaderData* loader_data) {} DEBUG_ONLY(bool on_stack() { return false; }) // for template + Method* method() const { return _method; } + static int size() { return sizeof(MethodCounters) / wordSize; } bool is_klass() const { return false; } void clear_counters();

src/share/vm/oops/methodCounters.hpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File