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

jtreg: Fix failing TestRTMSpinLoopCount on PPC64

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 11
    • Fix Version/s: 11
    • Component/s: hotspot
    • Labels:
    • Subcomponent:
    • Resolved In Build:
      b24
    • CPU:
      ppc
    • OS:
      linux

      Backports

        Description

        Currently PPC64 JVM does not support integer values greater than 32767 to be passed as an option. As a result the following error is observed on PPC64 on test compiler/rtm/locking/TestRTMSpinLoopCount.java:

        Command line: [/home/gromero/hg/jdk11/jdk/./build/linux-ppc64le-normal-server-release/jdk/bin/java -cp /home/gromero/hg/jdk11/jdk/JTwork/classes/0/compiler/rtm/locking/TestRTMSpinLoopCount.d:/home/gromero/hg/jdk11/jdk/test/hotspot/jtreg/compiler/rtm/locking:/home/gromero/hg/jdk11/jdk/JTwork/classes/0/test/lib:/home/gromero/hg/jdk11/jdk/test/lib:/home/gromero/hg/jdk11/jdk/JTwork/classes/0:/home/gromero/hg/jdk11/jdk/test/hotspot/jtreg:/home/gromero/jtreg/lib/javatest.jar:/home/gromero/jtreg/lib/jtreg.jar -Xcomp -server -XX:-TieredCompilation -XX:+UseRTMLocking -XX:+UnlockDiagnosticVMOptions -XX:+UnlockExperimentalVMOptions -Xbootclasspath/a:. -XX:+WhiteBoxAPI --add-exports java.base/jdk.internal.misc=ALL-UNNAMED -XX:CompileCommand=compileonly,compiler.testlibrary.rtm.BusyLock::test -XX:RTMRetryCount=1000 -XX:RTMSpinLoopCount=100000 -XX:-UseRTMXendForLockBusy -XX:RTMTotalCountIncrRate=1 -XX:+PrintPreciseRTMLockingStatistics compiler.testlibrary.rtm.BusyLock true 1000 ]
        int RTMSpinLoopCount=100000 is outside the allowed range [ 0 ... 32767 ]
        Improperly specified VM option 'RTMSpinLoopCount=100000'
        Error: Could not create the Java Virtual Machine.
        Error: A fatal exception has occurred. Program will exit.

        STDERR:
         stdout: [];
         stderr: [int RTMSpinLoopCount=100000 is outside the allowed range [ 0 ... 32767 ]
        Improperly specified VM option 'RTMSpinLoopCount=100000'
        Error: Could not create the Java Virtual Machine.
        Error: A fatal exception has occurred. Program will exit.
        ]
         exitValue = 1

        Caused by option "-XX:RTMSpinLoopCount=100_000"

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                gromero Gustavo Romero
                Reporter:
                gromero Gustavo Romero
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: