Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8333763

Obsolete RTM flags and code

XMLWordPrintable

    • Icon: CSR CSR
    • Resolution: Approved
    • Icon: P4 P4
    • 24
    • hotspot
    • None
    • behavioral
    • minimal
    • RTM flags were deprecated in JDK 23
    • add/remove/modify command line option
    • Implementation

      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

            kvn Vladimir Kozlov
            kvn Vladimir Kozlov
            Joe Darcy
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: