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

vmTestbase/nsk/stress/jni/gclocker/gcl001.java failed with BootstrapMethodError: bootstrap method initialization exception

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not an Issue
    • Icon: P4 P4
    • 24
    • 24
    • hotspot
    • x86_64
    • windows

      The following test failed in the JDK24 CI:

      vmTestbase/nsk/stress/jni/gclocker/gcl001.java

      Here's a snippet from the log file:

      #section:main
      ----------messages:(6/387)----------
      command: main -XX:-UseGCOverheadLimit nsk.stress.jni.gclocker.gcl001 -stressThreadsFactor 8
      reason: User specified action: run main/othervm/native/timeout=480 -XX:-UseGCOverheadLimit nsk.stress.jni.gclocker.gcl001 -stressThreadsFactor 8
      started: Tue Oct 08 12:08:06 UTC 2024
      Mode: othervm [/othervm specified]
      finished: Tue Oct 08 12:09:17 UTC 2024
      elapsed time (seconds): 70.887
      ----------configuration:(0/0)----------
      ----------System.out:(1225/87009)----------
      Stress time: 30 seconds
      Stress iterations factor: 1
      Stress threads factor: 8
      Stress runs factor: 1
      Max memory: 1073741824
      Sleep time: 500
      Iterations: 0
      Number of threads: 24
      Run GC thread: false
      Run mem diag thread: false
      Run forever: false
      Maximium block size = 3355443
      Starting Thread[#33,nsk.stress.jni.gclocker.gcl001$JNIBooleanWorker@71dbcd0a,5,MainThreadGroup]
      Starting Thread[#34,nsk.stress.jni.gclocker.gcl001$JNIByteWorker@6403a61e,5,MainThreadGroup]
      Starting Thread[#35,nsk.stress.jni.gclocker.gcl001$JNICharWorker@4b9f9409,5,MainThreadGroup]

      <snip>

      Starting Thread[#222,nsk.stress.jni.gclocker.gcl001$GarbageProducer@17082f77,5,MainThreadGroup]
      Starting Thread[#223,nsk.stress.jni.gclocker.gcl001$GarbageProducer@466cf8b4,5,MainThreadGroup]
      Starting Thread[#224,nsk.stress.jni.gclocker.gcl001$GarbageProducer@6ab33705,5,MainThreadGroup]
      Exception in
      Exception in
      Exception in
      nsk.stress.jni.gclocker.gcl001$JNILongWorker@493bd014
      Exception in
      nsk.stress.jni.gclocker.gcl001$JNICharWorker@7dee49ec
      nsk.stress.jni.gclocker.gcl001$JNIShortWorker@19e19052
      Exception in
      nsk.stress.jni.gclocker.gcl001$JNIIntWorker@bc79207
      Exception in
      nsk.stress.jni.gclocker.gcl001$JNIByteWorker@767a70af
      Exception in
      nsk.stress.jni.gclocker.gcl001$JNIIntWorker@7e10f3ab
      Exception in
      nsk.stress.jni.gclocker.gcl001$JNICharWorker@601e9cb1
      java.lang.BootstrapMethodError: bootstrap method initialization exception
      at nsk.stress.jni.gclocker.gcl001$JNILongWorker.doit(gcl001.java:393)
      at nsk.stress.jni.gclocker.gcl001$JNIAbstractWorker.run(gcl001.java:198)
      at nsk.share.runner.ThreadsRunner$ManagedThread.run(ThreadsRunner.java:119)
      at java.base/java.lang.Thread.run(Thread.java:1576)
      Exception in
      nsk.stress.jni.gclocker.gcl001$JNIShortWorker@6a849108
      Exception in
      Exception in
      Exception in
      nsk.stress.jni.gclocker.gcl001$JNIIntWorker@74b70aac
      java.lang.BootstrapMethodError: bootstrap method initialization exception
      at java.base/java.lang.invoke.BootstrapMethodInvoker.invoke(BootstrapMethodInvoker.java:187)
      at java.base/java.lang.invoke.CallSite.makeSite(CallSite.java:316)
      at java.base/java.lang.invoke.MethodHandleNatives.linkCallSiteImpl(MethodHandleNatives.java:275)
      at java.base/java.lang.invoke.MethodHandleNatives.linkCallSite(MethodHandleNatives.java:265)
      at nsk.stress.jni.gclocker.gcl001$JNIIntWorker.doit(gcl001.java:358)
      at nsk.stress.jni.gclocker.gcl001$JNIAbstractWorker.run(gcl001.java:198)
      at nsk.share.runner.ThreadsRunner$ManagedThread.run(ThreadsRunner.java:119)
      at java.base/java.lang.Thread.run(Thread.java:1576)
      Caused by: java.lang.invoke.StringConcatException: Generator failed
      at java.base/java.lang.invoke.StringConcatFactory.makeConcatWithConstants(StringConcatFactory.java:406)
      at java.base/java.lang.invoke.BootstrapMethodInvoker.invoke(BootstrapMethodInvoker.java:102)
      ... 7 more
      Caused by: java.lang.invoke.StringConcatException: Exception while spinning the class
      at java.base/java.lang.invoke.StringConcatFactory$InlineHiddenClassStrategy.generate(StringConcatFactory.java:1368)
      at java.base/java.lang.invoke.StringConcatFactory.makeConcatWithConstants(StringConcatFactory.java:397)
      ... 8 more
      Caused by: java.lang.OutOfMemoryError: Java heap space

      <snip>

      java.lang.BootstrapMethodError: bootstrap method initialization exception
      at nsk.stress.jni.gclocker.gcl001$JNIIntWorker.doit(gcl001.java:358)
      at nsk.stress.jni.gclocker.gcl001$JNIAbstractWorker.run(gcl001.java:198)
      at nsk.share.runner.ThreadsRunner$ManagedThread.run(ThreadsRunner.java:119)
      at java.base/java.lang.Thread.run(Thread.java:1576)
      java.lang.BootstrapMethodError: bootstrap method initialization exception
      at nsk.stress.jni.gclocker.gcl001$JNILongWorker.doit(gcl001.java:393)
      at nsk.stress.jni.gclocker.gcl001$JNIAbstractWorker.run(gcl001.java:198)
      at nsk.share.runner.ThreadsRunner$ManagedThread.run(ThreadsRunner.java:119)
      at java.base/java.lang.Thread.run(Thread.java:1576)
      java.lang.BootstrapMethodError: bootstrap method initialization exception
      at nsk.stress.jni.gclocker.gcl001$JNIFloatWorker.doit(gcl001.java:428)
      at nsk.stress.jni.gclocker.gcl001$JNIAbstractWorker.run(gcl001.java:198)
      at nsk.share.runner.ThreadsRunner$ManagedThread.run(ThreadsRunner.java:119)
      at java.base/java.lang.Thread.run(Thread.java:1576)
      ----------System.err:(21/1529)----------
      Java HotSpot(TM) 64-Bit Server VM warning: Option ZGenerational was deprecated in version 23.0 and will likely be removed in a future release.
      Java HotSpot(TM) 64-Bit Server VM warning: Non-generational ZGC is deprecated.
      WARNING: A restricted method in java.lang.System has been called
      WARNING: java.lang.System::loadLibrary has been called by nsk.stress.jni.gclocker.gcl001 in an unnamed module (file:/C:/sb/prod/1728389137/testoutput/test-support/jtreg_open_test_hotspot_jtreg_vmTestbase_nsk_stress/classes/4/vmTestbase/nsk/stress/jni/gclocker/gcl001.d/)
      WARNING: Use --enable-native-access=ALL-UNNAMED to avoid a warning for callers in this module
      WARNING: Restricted methods will be blocked in a future release unless native access is enabled

      nsk.share.TestFailure: Test exit code: 97
      at nsk.share.test.Tests$TestRunner.execute(Tests.java:94)
      at nsk.share.test.Tests$TestRunner.run(Tests.java:100)
      at nsk.share.gc.GC.runTest(GC.java:114)
      at nsk.stress.jni.gclocker.gcl001.main(gcl001.java:77)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:573)
      at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
      at java.base/java.lang.Thread.run(Thread.java:1576)

      JavaTest Message: Test threw exception: nsk.share.TestFailure: Test exit code: 97
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: nsk.share.TestFailure: Test exit code: 97
      ----------rerun:(44/7257)*----------

            dholmes David Holmes
            dcubed Daniel Daugherty
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: