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

      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.

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

              Created:
              Updated:
              Resolved: