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

gc/TestDisableExplicitGC.java fails due to unexpected CodeCache GC

XMLWordPrintable

    • gc
    • b09
    • aarch64
    • linux

        The following test failed in the JDK24 CI:

        gc/TestDisableExplicitGC.java

        Here's a snippet from the log file:

        #section:main
        ----------messages:(7/533)----------
        command: main -XX:+DisableExplicitGC -Xlog:gc=debug gc.TestDisableExplicitGC
        reason: User specified action: run main/othervm/fail -XX:+DisableExplicitGC -Xlog:gc=debug gc.TestDisableExplicitGC
        started: Thu Jul 25 04:16:04 UTC 2024
        Mode: othervm [/othervm specified]
        Additional options from @modules: --add-modules java.base,jdk.management --add-exports java.base/jdk.internal.misc=ALL-UNNAMED --add-exports jdk.management/com.sun.management.internal=ALL-UNNAMED
        finished: Thu Jul 25 04:16:27 UTC 2024
        elapsed time (seconds): 23.519
        ----------configuration:(5/211)----------
        Boot Layer
          add modules: java.base jdk.management
          add exports: java.base/jdk.internal.misc ALL-UNNAMED
                       jdk.management/com.sun.management.internal ALL-UNNAMED

        ----------System.out:(9/527)----------
        [0.013s][info][gc] Using G1
        [0.014s][debug][gc] ConcGCThreads: 2 offset 16
        [0.014s][debug][gc] ParallelGCThreads: 8
        [0.014s][debug][gc] Initialize mark stack with 4096 chunks, maximum 536870912
        [21.656s][info ][gc] GC(0) Pause Young (Concurrent Start) (CodeCache GC Threshold) 5M->1M(488M) 8.010ms
        [21.656s][info ][gc] GC(1) Concurrent Mark Cycle
        [21.707s][info ][gc] GC(1) Pause Remark 2M->2M(10M) 40.760ms
        [21.711s][info ][gc] GC(1) Pause Cleanup 2M->2M(10M) 0.082ms
        [21.711s][info ][gc] GC(1) Concurrent Mark Cycle 55.489ms
        ----------System.err:(1/15)----------
        STATUS:Passed.
        ----------rerun:(49/7579)*----------

        <snip>

        result: Failed. Execution passed unexpectedly:


        test result: Failed. Execution passed unexpectedly:


        So the test has "STATUS:Passed.", but ended with:

        > result: Failed. Execution passed unexpectedly:

        I have no idea what that means.

        This same failure mode was logged in this bug from ~8 years ago:

        JDK-8166221 gc/TestDisableExplicitGC.java fails mysteriously

              tschatzl Thomas Schatzl
              dcubed Daniel Daugherty
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: