JDK-8333763 : Obsolete RTM flags and code
  • Type: CSR
  • Component: hotspot
  • Sub-Component: compiler
  • Priority: P4
  • Status: Closed
  • Resolution: Approved
  • Fix Versions: 24
  • Submitted: 2024-06-06
  • Updated: 2024-06-10
  • Resolved: 2024-06-07
Related Reports
CSR :  
Relates :  
Description
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

Comments
[~kvn] AFAICS this CSR request was filed before the PR was created. Once it existed then the PR would indicate that it needed to be approved.
10-06-2024

Thank you, Joe.
07-06-2024

Moving this CSR to Approved to get it out of the CSR queue.
07-06-2024

But PRs listed CSR as requirement for integration.
07-06-2024

A seperate CSR request is not needed for the Obsoletion as removal was covered when they were Deprecated.
07-06-2024