JDK-8358542 : Remove RTM test VMProps
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 26
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2025-06-03
  • Updated: 2025-07-03
  • Resolved: 2025-06-26
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 26
26 b05Fixed
Related Reports
Relates :  
Description
In test/jtreg-ext/requires/VMProps.java I don't think these are used anymore with RTM removal.

    /**
     * @return "true" if compiler in use supports RTM and "false" otherwise.
     * Note: Lightweight locking does not support RTM (for now).
     */
    protected String vmRTMCompiler() {
        boolean isRTMCompiler = false;

        if (Compiler.isC2Enabled() &&
            (Platform.isX86() || Platform.isX64() || Platform.isPPC()) &&
            is_LM_LIGHTWEIGHT().equals("false")) {
            isRTMCompiler = true;
        }
        return "" + isRTMCompiler;
    }

    /**
     * @return true if VM runs RTM supported CPU and false otherwise.
     */
    protected String vmRTMCPU() {
        return "" + CPUInfo.hasFeature("rtm");
    }

Comments
Changeset: 5039b42d Branch: master Author: Anton Artemov <anton.artemov@oracle.com> Committer: David Holmes <dholmes@openjdk.org> Date: 2025-06-26 07:41:22 +0000 URL: https://git.openjdk.org/jdk/commit/5039b42de170769797312969185ee9d67f34cf24
26-06-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/25847 Date: 2025-06-17 08:39:49 +0000
24-06-2025