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

java/util/stream/SpliteratorTest.java fails on 32-bit platforms with "Misaligned access at address: 12"

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 16
    • Fix Version/s: 16
    • Component/s: core-libs
    • Labels:

      Description

      It currently fails on x86_32 with:

      $ CONF=linux-x86-server-fastdebug make images run-test TEST=java/util/stream/test/org/openjdk/tests/java/util/stream/SpliteratorTest.java

      test org.openjdk.tests.java.util.stream.SpliteratorTest.testSegmentSpliterator("doubles", [1024:b64], org.openjdk.tests.java.util.stream.SegmentTestDataProvider$$Lambda$219/0xc47061e8@3a1a30): failure
      java.lang.IllegalStateException: Misaligned access at address: 12
      at java.base/java.lang.invoke.MemoryAccessVarHandleBase.newIllegalStateExceptionForMisalignedAccess(MemoryAccessVarHandleBase.java:54)
      at java.base/java.lang.invoke.MemoryAccessVarHandleDoubleHelper.offsetNoVMAlignCheck(MemoryAccessVarHandleDoubleHelper.java:76)
      at java.base/java.lang.invoke.MemoryAccessVarHandleDoubleHelper.get0(MemoryAccessVarHandleDoubleHelper.java:87)
      at java.base/java.lang.invoke.VarHandleGuards.guard_L_D(VarHandleGuards.java:295)
      at org.openjdk.tests.java.util.stream.SegmentTestDataProvider.lambda$compareSegmentsDouble$7(SegmentTestDataProvider.java:125)

      I checked that once JDK-8254162 integrates, that issue is gone. Until then, having clean x86_32 testing is beneficial for other work.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              shade Aleksey Shipilev
              Reporter:
              shade Aleksey Shipilev
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: