Test gc/arguments/TestParallelGCErgo.java fails with UseTransparentHugePages

XMLWordPrintable

    • gc
    • b15

        gc/arguments/TestParallelGCErgo.java fails when running THP in always or madvise mode and using the -XX:+UseTransparentHugePages flag. The test checks if UseLargePages is not set or disabled, but only from the command line, not in the JVM.

        $ make -C ../build/mainline test TEST=test/hotspot/jtreg/gc/arguments/TestParallelGCErgo.java JTREG="JAVA_OPTIONS=-XX:+UseTransparentHugePages"
        ...
        [2025-09-04T09:57:27.794870771Z] Gathering output for process 460443
        [2025-09-04T09:57:27.947788256Z] Waiting for completion for process 460443
        [2025-09-04T09:57:27.948153878Z] Waiting for completion finished for process 460443
        Output and diagnostic info for process 460443 was saved into 'pid-460443-output.log'
        STDERR:
        java.lang.RuntimeException: Wrong value for minimum young. Expected 89128960 but got 88080384
                at gc.arguments.TestParallelGCErgo.main(TestParallelGCErgo.java:80)
                at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
                at java.base/java.lang.reflect.Method.invoke(Method.java:565)
                at com.sun.javatest.regtest.agent.MainActionHelper$AgentVMRunnable.run(MainActionHelper.java:335)
                at java.base/java.lang.Thread.run(Thread.java:1474)

        JavaTest Message: Test threw exception: java.lang.RuntimeException
        JavaTest Message: shutting down test


        TEST RESULT: Failed. Execution failed: `main' threw exception: java.lang.RuntimeException: Wrong value for minimum young. Expected 89128960 but got 88080384

              Assignee:
              Joel Sikström
              Reporter:
              Joel Sikström
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: