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

AllocateUninitializedArray fails with "IllegalStateException: Wrong class: expected = class [I, but got class [C "

    Details

      Description

      compiler/intrinsics/unsafe/AllocateUninitializedArray.java failed on solaris_x64 running the last action 'run main/othervm -ea -Diters=30000 -XX:TieredStopAtLevel=4 compiler.intrinsics.unsafe.AllocateUninitializedArray'

      ACTION: main -- Failed. Execution failed: `main' threw exception: java.lang.IllegalStateException: Wrong class: expected = class [I, but got class [C
      REASON: User specified action: run main/othervm -ea -Diters=30000 -XX:TieredStopAtLevel=4 compiler.intrinsics.unsafe.AllocateUninitializedArray
      TIME: 7.948 seconds
      messages:
      command: main -ea -Diters=30000 -XX:TieredStopAtLevel=4 compiler.intrinsics.unsafe.AllocateUninitializedArray
      reason: User specified action: run main/othervm -ea -Diters=30000 -XX:TieredStopAtLevel=4 compiler.intrinsics.unsafe.AllocateUninitializedArray
      Mode: othervm [/othervm specified]
      Additional options from @modules: --add-modules java.base --add-exports java.base/jdk.internal.misc=ALL-UNNAMED --add-opens java.base/jdk.internal.misc=ALL-UNNAMED
      elapsed time (seconds): 7.948
      configuration:
      Boot Layer
        add modules: java.base
        add exports: java.base/jdk.internal.misc ALL-UNNAMED
        add opens: java.base/jdk.internal.misc ALL-UNNAMED

      STDOUT:
      STDERR:
      java.lang.IllegalStateException: Wrong class: expected = class [I, but got class [C
      at compiler.intrinsics.unsafe.AllocateUninitializedArray.testOK(AllocateUninitializedArray.java:116)
      at compiler.intrinsics.unsafe.AllocateUninitializedArray.main(AllocateUninitializedArray.java:78)
      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:115)
      at java.base/java.lang.Thread.run(Thread.java:844)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                thartmann Tobias Hartmann
                Reporter:
                iignatyev Igor Ignatyev
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: