Mercurial > hg > graal-jvmci-8
diff src/share/vm/ci/ciMethodData.hpp @ 17780:606acabe7b5c
8031320: Use Intel RTM instructions for locks
Summary: Use RTM for inflated locks and stack locks.
Reviewed-by: iveresov, twisti, roland, dcubed
author | kvn |
---|---|
date | Thu, 20 Mar 2014 17:49:27 -0700 |
parents | b8413a9cbb84 |
children | 52b4284cb496 2c6ef90f030a |
line wrap: on
line diff
--- a/src/share/vm/ci/ciMethodData.hpp Sat Mar 22 00:26:48 2014 +0400 +++ b/src/share/vm/ci/ciMethodData.hpp Thu Mar 20 17:49:27 2014 -0700 @@ -478,6 +478,18 @@ int invocation_count() { return _invocation_counter; } int backedge_count() { return _backedge_counter; } + +#if INCLUDE_RTM_OPT + // return cached 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.