--- old/src/share/vm/ci/ciMethodData.hpp 2014-03-17 11:39:23.000000000 -0700 +++ new/src/share/vm/ci/ciMethodData.hpp 2014-03-17 11:39:23.000000000 -0700 @@ -478,6 +478,18 @@ int invocation_count() { return _invocation_counter; } int backedge_count() { return _backedge_counter; } + +#if INCLUDE_RTM_OPT + // return chached value + int rtm_state() { + if (is_empty()) { + return NoRTM; + } else { + return get_MethodData()->rtm_state(); + } + } +#endif + // Transfer information about the method to MethodData*. // would_profile means we would like to profile this method, // meaning it's not trivial.