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

FieldLayout/OldLayoutCheck.java fails due to "RuntimeException: Misplaced int field: expected 24 to equal 12"

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 15
    • 15
    • hotspot
    • b12
    • generic
    • generic

      The following test is failing in the JDK15 CI:

          runtime/FieldLayout/OldLayoutCheck.java#id0

      Here's a snippet from the log file:

      #section:main
      ----------messages:(5/408)----------
      command: main -XX:+UseCompressedClassPointers -XX:-UseEmptySlotsInSupers OldLayoutCheck
      reason: User specified action: run main/othervm -XX:+UseCompressedClassPointers -XX:-UseEmptySlotsInSupers OldLayoutCheck
      Mode: othervm [/othervm specified]
      Additional options from @modules: --add-modules java.base,java.management --add-exports java.base/jdk.internal.misc=ALL-UNNAMED
      elapsed time (seconds): 1.04
      ----------configuration:(4/115)----------
      Boot Layer
        add modules: java.base java.management
        add exports: java.base/jdk.internal.misc ALL-UNNAMED

      ----------System.out:(0/0)----------
      ----------System.err:(15/995)----------
      java.lang.RuntimeException: Misplaced int field: expected 24 to equal 12
      at jdk.test.lib.Asserts.fail(Asserts.java:594)
      at jdk.test.lib.Asserts.assertEquals(Asserts.java:205)
      at OldLayoutCheck.main(OldLayoutCheck.java:65)
      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:832)

      JavaTest Message: Test threw exception: java.lang.RuntimeException: Misplaced int field: expected 24 to equal 12
      JavaTest Message: shutting down test

      STATUS:Failed.`main' threw exception: java.lang.RuntimeException: Misplaced int field: expected 24 to equal 12
      ----------rerun:(44/5466)*----------

            fparain Frederic Parain
            dcubed Daniel Daugherty
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: