-
Enhancement
-
Resolution: Duplicate
-
P3
-
None
-
None
-
None
See JDK-8255343 change. The test fails on x86_32, because the alignment by 8 is unexpected. It is an open question whether the alignment should indeed be 4 or 8 for those types.
For one, this makes the implementation assumption that nothing accesses long[]/double[] elements atomically. This might have been okay in the past, but today we can probably do the atomic access with VarHandle, and it is supposed to work somehow.
If we change JAVA_LONG and JAVA_DOUBLE alignment to 4 for x86_32, thenJDK-8255343 can be reverted.
For one, this makes the implementation assumption that nothing accesses long[]/double[] elements atomically. This might have been okay in the past, but today we can probably do the atomic access with VarHandle, and it is supposed to work somehow.
If we change JAVA_LONG and JAVA_DOUBLE alignment to 4 for x86_32, then
- duplicates
-
JDK-8308248 Revisit alignment of layout constants on 32-bit platforms
- Closed
- relates to
-
JDK-8255343 java/util/stream/SpliteratorTest.java fails on 32-bit platforms with "Misaligned access at address: 12"
- Resolved