mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8031320: Use Intel RTM instructions for locks
Use RTM for inflated locks and stack locks. Reviewed-by: iveresov, twisti, roland, dcubed
This commit is contained in:
parent
315e4838e9
commit
97a51c5c2a
46 changed files with 1251 additions and 87 deletions
|
@ -478,6 +478,18 @@ public:
|
|||
|
||||
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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue