JDK-8255343 : java/util/stream/SpliteratorTest.java fails on 32-bit platforms with "Misaligned access at address: 12"
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.util.stream
  • Affected Version: 16
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2020-10-23
  • Updated: 2021-07-13
  • Resolved: 2020-10-26
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 16
16 b22Fixed
Related Reports
Relates :  
Relates :  
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.
Comments
Changeset: c28b0111 Author: Aleksey Shipilev <shade@openjdk.org> Date: 2020-10-26 07:11:44 +0000 URL: https://git.openjdk.java.net/jdk/commit/c28b0111
26-10-2020