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

runtime/reflect/ReflectOutOfMemoryError.java fails with "bootstrap method initialization exception"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 24
    • 24
    • hotspot
    • b15

      Running runtime/reflect/ReflectOutOfMemoryError.java without compressed OOPs fails intermittently with:

      java.lang.RuntimeException: Unexpected InvocationTargetException: java.lang.BootstrapMethodError: bootstrap method initialization exception
      at ReflectOutOfMemoryError.main(ReflectOutOfMemoryError.java:96)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:103)
      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:1575)

      The failure is easiest to reproduce using -XX:+UseParallelGC (failure frequency of around 10-20% on JDK 24 b13), but it has been observed at least once using -XX:+UseZGC (albeit on a personal build with a few local changes), which indicates that it is probably GC-independent. No failure has been seen with compressed OOPs enabled. The failure has been observed on both linux-x64-debug and linux-aarch64-debug.

            dholmes David Holmes
            rcastanedalo Roberto Castaneda Lozano
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: