Summary
Obsolete RTM flags and remove corresponding code and tests in HotSpot VM.
Problem
RTM flags were deprecated in JDK 23: JDK-8328986
Solution
Obsolete RTM flags in JDK 24 and expire them in JDK 25.
Specification
- /* Use Restricted Transactional Memory for lock eliding */ \
- product(bool, UseRTMLocking, false, \
- "(Deprecated) Enable RTM lock eliding for inflated locks " \
- "in compiled code") \
- \
- product(bool, UseRTMDeopt, false, \
- "(Deprecated) Perform deopt and recompilation based on " \
- "RTM abort ratio") \
- \
- product(int, RTMRetryCount, 5, \
- "(Deprecated) Number of RTM retries on lock abort or busy") \
- range(0, max_jint) \
- \
Full PR for reference: https://github.com/openjdk/jdk/pull/19589
- csr of
-
JDK-8329141 Obsolete RTM flags and code
-
- Resolved
-
- relates to
-
JDK-8328991 Deprecate UseRTM* flags for removal
-
- Closed
-