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

Deprecate UseRTM* flags for removal

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 23
    • 23
    • hotspot
    • b16
    • x86
    • generic

      HotSpot supports RTM (restricted transactional memory) to be used for locking since JDK 8 on Intel's CPU (JDK-8031320). It was added to other platforms but has since been disabled and removed on all but Intel processors. There was attempt to deprecate it (JDK-8292082) during JDK 20 development but at that time it was decided to keep it. Recently we discussed this with Intel and they agreed with RTM deprecation and removal from HotSpot.

      RTM adds unnecessarily to complexity and maintenance burden. It was never enabled by default because it only helped with some heavy lock contentions. Additionally new LIGHTWEIGHT locking implementation will not support it: JDK-8320321.

      I propose to deprecate the related flags and remove the flags and all related code in a later release according to process.

            kvn Vladimir Kozlov
            kvn Vladimir Kozlov
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: