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

ZGC: InternalError in sun.invoke.util.Wrapper.forPrimitiveType

XMLWordPrintable

    • gc

      Failure running test/hotspot/jtreg/gc/stress/gcold/TestGCOldWithZ.java

      Allocating 152 trees.
        (49804320 bytes)
        (2490216 nodes)
      Initialization complete...
      java.lang.InternalError
      at java.base/sun.invoke.util.Wrapper.forPrimitiveType(Wrapper.java:274)
      at java.base/java.lang.invoke.MethodTypeForm.<init>(MethodTypeForm.java:163)
      at java.base/java.lang.invoke.MethodTypeForm.findForm(MethodTypeForm.java:218)
      at java.base/java.lang.invoke.MethodType.makeImpl(MethodType.java:329)
      at java.base/java.lang.invoke.MethodTypeForm.canonicalize(MethodTypeForm.java:253)
      at java.base/java.lang.invoke.MethodTypeForm.findForm(MethodTypeForm.java:215)
      at java.base/java.lang.invoke.MethodType.makeImpl(MethodType.java:329)
      at java.base/java.lang.invoke.MethodHandleNatives.findMethodHandleType(MethodHandleNatives.java:377)
      at gc.stress.gcold.TestGCOld.main(TestGCOld.java:399)
      at gc.stress.gcold.TestGCOldWithZ.main(TestGCOldWithZ.java:38)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      at java.base/java.lang.reflect.Method.invoke(Method.java:564)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:830)

      JavaTest Message: Test threw exception: java.lang.InternalError
      JavaTest Message: shutting down test

      Looking at the code in sun.invoke.utilities.Wrapper, this exception is thrown if the type argument given to forPrimitiveType is indeed type.isPrimitiveType(), but the wrapper lookup (findPrimitiveType) failed and returned null. But that can only happen if the perfect hash lookup in findPrimitiveType missed (either no value or the wrong value).

            Unassigned Unassigned
            kbarrett Kim Barrett
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: