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

serviceability/tmtools/jstat/GcNewTest.java fails with "Error in the percent calculation"

    XMLWordPrintable

Details

    • b16
    • x86_64
    • linux, os_x

    Description

      The following test failed in the JDK20 CI:

      serviceability/tmtools/jstat/GcNewTest.java

      Here's a snippet from the log file:

      #section:main
      ----------messages:(5/313)----------
      command: main -XX:+UsePerfData -Xmx128M GcNewTest
      reason: User specified action: run main/othervm -XX:+UsePerfData -Xmx128M GcNewTest
      Mode: othervm [/othervm specified]
      Additional options from @modules: --add-modules java.base --add-exports java.base/jdk.internal.misc=ALL-UNNAMED
      elapsed time (seconds): 56.948
      ----------configuration:(4/111)----------
      Boot Layer
        add modules: java.base
        add exports: java.base/jdk.internal.misc ALL-UNNAMED

      ----------System.out:(7/669)----------
      [2022-09-01T12:11:07.950252253Z] started process 2371387 [/opt/mach5/mesos/work_dir/jib-master/install/jdk-20+13-823/linux-x64-debug.jdk/jdk-20/fastdebug/bin/jstat, -gcnew, 2371242] with out/err redirected to './out.12311963719972759977.txt' and './err.12311963719972759977.txt'
      [2022-09-01T12:11:15.049856384Z] process 2371387 finished with exit code = 0
      Process output: Exit code: 0
      stdout: S0C S1C S0U S1U TT MTT DSS EC EU YGC YGCT
              0.0 0.0 0.0 0.0 15 15 0.0 25600.0 4096.0 0 0.000
      stderr:
      Committed size of the pool 'Eden Space' is 25600
      ----------System.err:(12/914)----------
      java.lang.RuntimeException: Error in the percent calculation (eden size: 25600, heap size: 17408, calculated eden percent: 1.4705882)
      at utils.GcProvoker.provokeGc(GcProvoker.java:66)
      at GcNewTest.main(GcNewTest.java:53)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:578)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:1589)

      JavaTest Message: Test threw exception: java.lang.RuntimeException: Error in the percent calculation (eden size: 25600, heap size: 17408, calculated eden percent: 1.4705882)
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Error in the percent calculation (eden size: 25600, heap size: 17408, calculated eden percent: 1.4705882)
      ----------rerun:(48/8778)*----------

      Attachments

        Issue Links

          Activity

            People

              kevinw Kevin Walls
              dcubed Daniel Daugherty
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: