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

jdk/jfr/event/compiler/TestJitRestart.java failed with "RuntimeException: No JIT restart event found: expected true, was false"

XMLWordPrintable

    • jfr
    • b09
    • x86_64
    • linux

        The following test failed in the JDK20 CI:

        jdk/jfr/event/compiler/TestJitRestart.java

        Here's a snippet from the log file:

        #section:main
        ----------messages:(5/501)----------
        command: main -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -XX:+SegmentedCodeCache -XX:-UseLargePages jdk.jfr.event.compiler.TestJitRestart
        reason: User specified action: run main/othervm -Xbootclasspath/a:. -XX:+UnlockDiagnosticVMOptions -XX:+WhiteBoxAPI -XX:+SegmentedCodeCache -XX:-UseLargePages jdk.jfr.event.compiler.TestJitRestart
        Mode: othervm [/othervm specified]
        Additional options from @modules: --add-modules jdk.jfr,jdk.management.jfr
        elapsed time (seconds): 2.618
        ----------configuration:(3/54)----------
        Boot Layer
          add modules: jdk.jfr jdk.management.jfr

        ----------System.out:(87/3716)----------
        [1.618s][warning][codecache] CodeHeap 'non-profiled nmethods' is full. Compiler has been disabled.
        [1.618s][warning][codecache] Try increasing the code heap size using -XX:NonProfiledCodeHeapSize=
        CodeHeap 'non-profiled nmethods': size=120028Kb used=665Kb max_used=665Kb free=119362Kb
         bounds [0x00007f98f01e9000, 0x00007f98f7720000, 0x00007f98f7720000]
        CodeHeap 'profiled nmethods': size=120028Kb used=1866Kb max_used=1866Kb free=118161Kb
         bounds [0x00007f98e8720000, 0x00007f98efc57000, 0x00007f98efc57000]
        CodeHeap 'non-nmethods': size=5704Kb used=1677Kb max_used=1703Kb free=4027Kb
         bounds [0x00007f98efc57000, 0x00007f98efec7000, 0x00007f98f01e9000]
         total_blobs=1792 nmethods=974 adapters=737
         compilation: disabled (not enough contiguous free space left)
                      stopped_count=1, restarted_count=0
         full_count=1
        # events:1
        jdk.CodeCacheFull {
          startTime = 18:07:31.272 (2022-07-21)
          codeBlobType = "CodeHeap 'non-profiled nmethods'"
          startAddress = 0x7F98F01E9000
          commitedTopAddress = 0x7F98F7720000
          reservedTopAddress = 0x7F98F7720000
          entryCount = 351
          methodCount = 351
          adaptorCount = 0
          unallocatedCapacity = 116.6 MB
          fullCount = 1
          codeCacheMaxCapacity = 240.0 MB
          eventThread = "MainThread" (javaThreadId = 22)
        }


        [2.370s][warning][codecache] CodeHeap 'profiled nmethods' is full. Compiler has been disabled.
        [2.370s][warning][codecache] Try increasing the code heap size using -XX:ProfiledCodeHeapSize=
        CodeHeap 'non-profiled nmethods': size=120028Kb used=684Kb max_used=702Kb free=119343Kb
         bounds [0x00007f98f01e9000, 0x00007f98f7720000, 0x00007f98f7720000]
        CodeHeap 'profiled nmethods': size=120028Kb used=549Kb max_used=1866Kb free=119478Kb
         bounds [0x00007f98e8720000, 0x00007f98efc57000, 0x00007f98efc57000]
        CodeHeap 'non-nmethods': size=5704Kb used=1709Kb max_used=1795Kb free=3994Kb
         bounds [0x00007f98efc57000, 0x00007f98efec7000, 0x00007f98f01e9000]
         total_blobs=1382 nmethods=521 adapters=781
         compilation: disabled (not enough contiguous free space left)
                      stopped_count=2, restarted_count=1
         full_count=2
        # events:1
        jdk.CodeCacheFull {
          startTime = 18:07:32.024 (2022-07-21)
          codeBlobType = "CodeHeap 'profiled nmethods'"
          startAddress = 0x7F98E8720000
          commitedTopAddress = 0x7F98EFC57000
          reservedTopAddress = 0x7F98EFC57000
          entryCount = 218
          methodCount = 218
          adaptorCount = 0
          unallocatedCapacity = 116.7 MB
          fullCount = 1
          codeCacheMaxCapacity = 240.0 MB
          eventThread = "MainThread" (javaThreadId = 22)
        }


        [2.426s][warning][codecache] CodeHeap 'non-nmethods' is full. Compiler has been disabled.
        [2.426s][warning][codecache] Try increasing the code heap size using -XX:NonNMethodCodeHeapSize=
        CodeHeap 'non-profiled nmethods': size=120028Kb used=684Kb max_used=702Kb free=119343Kb
         bounds [0x00007f98f01e9000, 0x00007f98f7720000, 0x00007f98f7720000]
        CodeHeap 'profiled nmethods': size=120028Kb used=569Kb max_used=1866Kb free=119458Kb
         bounds [0x00007f98e8720000, 0x00007f98efc57000, 0x00007f98efc57000]
        CodeHeap 'non-nmethods': size=5704Kb used=1709Kb max_used=1795Kb free=3994Kb
         bounds [0x00007f98efc57000, 0x00007f98f01e9000, 0x00007f98f01e9000]
         total_blobs=1383 nmethods=522 adapters=781
         compilation: disabled (not enough contiguous free space left)
                      stopped_count=2, restarted_count=1
         full_count=3
        # events:1
        jdk.CodeCacheFull {
          startTime = 18:07:32.080 (2022-07-21)
          codeBlobType = "CodeHeap 'non-nmethods'"
          startAddress = 0x7F98EFC57000
          commitedTopAddress = 0x7F98F01E9000
          reservedTopAddress = 0x7F98F01E9000
          entryCount = 861
          methodCount = 0
          adaptorCount = 781
          unallocatedCapacity = 3.9 MB
          fullCount = 1
          codeCacheMaxCapacity = 240.0 MB
          eventThread = "MainThread" (javaThreadId = 22)
        }


        ----------System.err:(19/1497)----------
        Java HotSpot(TM) 64-Bit Server VM warning: CodeHeap 'non-profiled nmethods' is full. Compiler has been disabled.
        Java HotSpot(TM) 64-Bit Server VM warning: Try increasing the code heap size using -XX:NonProfiledCodeHeapSize=
        Java HotSpot(TM) 64-Bit Server VM warning: CodeHeap 'profiled nmethods' is full. Compiler has been disabled.
        Java HotSpot(TM) 64-Bit Server VM warning: Try increasing the code heap size using -XX:ProfiledCodeHeapSize=
        Java HotSpot(TM) 64-Bit Server VM warning: CodeHeap 'non-nmethods' is full. Compiler has been disabled.
        Java HotSpot(TM) 64-Bit Server VM warning: Try increasing the code heap size using -XX:NonNMethodCodeHeapSize=
        java.lang.RuntimeException: No JIT restart event found: expected true, was false
        at jdk.test.lib.Asserts.fail(Asserts.java:594)
        at jdk.test.lib.Asserts.assertTrue(Asserts.java:486)
        at jdk.jfr.event.compiler.TestJitRestart.main(TestJitRestart.java:61)
        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: No JIT restart event found: expected true, was false
        JavaTest Message: shutting down test

        STATUS:Failed.`main' threw exception: java.lang.RuntimeException: No JIT restart event found: expected true, was false
        ----------rerun:(41/6658)*----------

              mbaesken Matthias Baesken
              dcubed Daniel Daugherty
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: