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

serviceability/tmtools/jstat/GcTest02.java fails with parallel GC

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9
    • hotspot
    • gc
    • b146

      Test failed on x64 Linux machine with 252GB of RAM.

      [I'm not certain of the JVM arguments listed here. See comments.]
      -server -Xmixed -XX:MaxRAMFraction=8 -XX:+CreateCoredumpOnCrash -XX:+IgnoreUnrecognizedVMOptions -XX:+UseParallelGC -XX:-UseParallelOldGC -XX:+UseNUMA

      The OOME triggers an exception while processing MethodHandles.
      ----------System.err:(74/6872)----------
      java.lang.InternalError: BMH.reinvoke=Lambda(a0:L/SpeciesData<L>,a1:L,a2:L,a3:L,a4:L,a5:L)=>{
          t6:L=Species_L.argL0(a0:L);
          t7:L=MethodHandle.invokeBasic(t6:L,a1:L,a2:L,a3:L,a4:L,a5:L);t7:L}
      at java.lang.invoke.MethodHandleStatics.newInternalError(java.base@9-internal/MethodHandleStatics.java:98)
      at java.lang.invoke.LambdaForm.compileToBytecode(java.base@9-internal/LambdaForm.java:669)
      at java.lang.invoke.LambdaForm.prepare(java.base@9-internal/LambdaForm.java:637)
      at java.lang.invoke.MethodHandle.<init>(java.base@9-internal/MethodHandle.java:464)
      at java.lang.invoke.BoundMethodHandle.<init>(java.base@9-internal/BoundMethodHandle.java:60)
      at java.lang.invoke.BoundMethodHandle$Species_L.<init>(java.base@9-internal/BoundMethodHandle.java:213)
      at java.lang.invoke.BoundMethodHandle$Species_L.make(java.base@9-internal/BoundMethodHandle.java:226)
      at java.lang.invoke.BoundMethodHandle.makeReinvoker(java.base@9-internal/BoundMethodHandle.java:143)
      at java.lang.invoke.DirectMethodHandle.rebind(java.base@9-internal/DirectMethodHandle.java:129)
      at java.lang.invoke.MethodHandle.asCollector(java.base@9-internal/MethodHandle.java:1131)
      at java.lang.invoke.MethodHandle.asCollector(java.base@9-internal/MethodHandle.java:1083)
      at java.lang.invoke.MethodHandleImpl$AsVarargsCollector.<init>(java.base@9-internal/MethodHandleImpl.java:438)
      at java.lang.invoke.MethodHandleImpl$AsVarargsCollector.<init>(java.base@9-internal/MethodHandleImpl.java:432)
      at java.lang.invoke.MethodHandleImpl.makeVarargsCollector(java.base@9-internal/MethodHandleImpl.java:423)
      at java.lang.invoke.MethodHandle.asVarargsCollector(java.base@9-internal/MethodHandle.java:1316)
      at java.lang.invoke.MethodHandle.withVarargs(java.base@9-internal/MethodHandle.java:1001)
      at java.lang.invoke.MethodHandle.setVarargs(java.base@9-internal/MethodHandle.java:1466)
      at java.lang.invoke.MethodHandles$Lookup.getDirectMethodCommon(java.base@9-internal/MethodHandles.java:1972)
      at java.lang.invoke.MethodHandles$Lookup.getDirectMethodNoSecurityManager(java.base@9-internal/MethodHandles.java:1919)
      at java.lang.invoke.MethodHandles$Lookup.getDirectMethodForConstant(java.base@9-internal/MethodHandles.java:2150)
      at java.lang.invoke.MethodHandles$Lookup.linkMethodHandleConstant(java.base@9-internal/MethodHandles.java:2099)
      at java.lang.invoke.MethodHandleNatives.linkMethodHandleConstant(java.base@9-internal/MethodHandleNatives.java:500)
      at utils.GcProvokerImpl.eatMetaspace(GcProvokerImpl.java:99)
      at utils.GcProvokerImpl.eatMetaspaceAndHeap(GcProvokerImpl.java:76)
      at GcTest02.main(GcTest02.java:54)
      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-internal/Native Method)
      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-internal/NativeMethodAccessorImpl.java:62)
      at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-internal/DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(java.base@9-internal/Method.java:531)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110)
      at java.lang.Thread.run(java.base@9-internal/Thread.java:843)
      Caused by: java.lang.OutOfMemoryError: Java heap space
      at jdk.internal.org.objectweb.asm.ClassWriter.<init>(java.base@9-internal/ClassWriter.java:640)
      at java.lang.invoke.InvokerBytecodeGenerator.classFilePrologue(java.base@9-internal/InvokerBytecodeGenerator.java:299)
      at java.lang.invoke.InvokerBytecodeGenerator.generateCustomizedCodeBytes(java.base@9-internal/InvokerBytecodeGenerator.java:643)
      at java.lang.invoke.InvokerBytecodeGenerator.generateCustomizedCode(java.base@9-internal/InvokerBytecodeGenerator.java:602)
      at java.lang.invoke.LambdaForm.compileToBytecode(java.base@9-internal/LambdaForm.java:663)
      at java.lang.invoke.LambdaForm.prepare(java.base@9-internal/LambdaForm.java:637)
      at java.lang.invoke.MethodHandle.<init>(java.base@9-internal/MethodHandle.java:464)
      at java.lang.invoke.BoundMethodHandle.<init>(java.base@9-internal/BoundMethodHandle.java:60)
      at java.lang.invoke.BoundMethodHandle$Species_L.<init>(java.base@9-internal/BoundMethodHandle.java:213)
      at java.lang.invoke.BoundMethodHandle$Species_L.make(java.base@9-internal/BoundMethodHandle.java:226)
      at java.lang.invoke.BoundMethodHandle.makeReinvoker(java.base@9-internal/BoundMethodHandle.java:143)
      at java.lang.invoke.DirectMethodHandle.rebind(java.base@9-internal/DirectMethodHandle.java:129)
      at java.lang.invoke.MethodHandle.asCollector(java.base@9-internal/MethodHandle.java:1131)
      at java.lang.invoke.MethodHandle.asCollector(java.base@9-internal/MethodHandle.java:1083)
      at java.lang.invoke.MethodHandleImpl$AsVarargsCollector.<init>(java.base@9-internal/MethodHandleImpl.java:438)
      at java.lang.invoke.MethodHandleImpl$AsVarargsCollector.<init>(java.base@9-internal/MethodHandleImpl.java:432)
      at java.lang.invoke.MethodHandleImpl.makeVarargsCollector(java.base@9-internal/MethodHandleImpl.java:423)
      at java.lang.invoke.MethodHandle.asVarargsCollector(java.base@9-internal/MethodHandle.java:1316)
      at java.lang.invoke.MethodHandle.withVarargs(java.base@9-internal/MethodHandle.java:1001)
      at java.lang.invoke.MethodHandle.setVarargs(java.base@9-internal/MethodHandle.java:1466)
      at java.lang.invoke.MethodHandles$Lookup.getDirectMethodCommon(java.base@9-internal/MethodHandles.java:1972)
      at java.lang.invoke.MethodHandles$Lookup.getDirectMethodNoSecurityManager(java.base@9-internal/MethodHandles.java:1919)
      at java.lang.invoke.MethodHandles$Lookup.getDirectMethodForConstant(java.base@9-internal/MethodHandles.java:2150)
      at java.lang.invoke.MethodHandles$Lookup.linkMethodHandleConstant(java.base@9-internal/MethodHandles.java:2099)
      at java.lang.invoke.MethodHandleNatives.linkMethodHandleConstant(java.base@9-internal/MethodHandleNatives.java:500)
      at utils.GcProvokerImpl.eatMetaspace(GcProvokerImpl.java:99)
      at utils.GcProvokerImpl.eatMetaspaceAndHeap(GcProvokerImpl.java:76)
      at GcTest02.main(GcTest02.java:54)
      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(java.base@9-internal/Native Method)
      at jdk.internal.reflect.NativeMethodAccessorImpl.invoke(java.base@9-internal/NativeMethodAccessorImpl.java:62)
      at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(java.base@9-internal/DelegatingMethodAccessorImpl.java:43)
      at java.lang.reflect.Method.invoke(java.base@9-internal/Method.java:531)

      JavaTest Message: Test threw exception: java.lang.InternalError: BMH.reinvoke=Lambda(a0:L/SpeciesData<L>,a1:L,a2:L,a3:L,a4:L,a5:L)=>{
          t6:L=Species_L.argL0(a0:L);
          t7:L=MethodHandle.invokeBasic(t6:L,a1:L,a2:L,a3:L,a4:L,a5:L);t7:L}
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.InternalError: BMH.reinvoke=Lambda(a0:L/SpeciesData<L>,a1:L,a2:L,a3:L,a4:L,a5:L)=>{ t6:L=Species_L.argL0(a0:L); t7:L=MethodHandle.invokeBasic(t6:L,a1:L,a2:L,a3:L,a4:L,a5:L);t7:L}

      There were other similar OOME errors in the test recently, but there have been fixes since then. So this might be integration blocker. Adding sub task to quarantine test.

            lmesnik Leonid Mesnik
            drwhite Derek White
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: