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

Maurizio Cimadamore mcimadamore at openjdk.java.net
Fri Oct 23 15:31:47 UTC 2020


On Fri, 23 Oct 2020 15:03:55 GMT, Aleksey Shipilev <shade at openjdk.org> wrote:

> I can fix the whole thing thus, without problem listing the test then. Agree?

Yes - another thing worth considering though is: if 32bit alignment is the best we can ask a 32bit VM (e.g. a 32bit VM doesn't really 64-bit align a double[] it seems, from what you are getting), then I think an even better fix would be to just make the constants JAVA_LONG and JAVA_DOUBLE aligned to 32 or 64 depending on the platform (and leave the test unchanged).

-------------

PR: https://git.openjdk.java.net/jdk/pull/836


More information about the core-libs-dev mailing list