java.nio.Bits.unaligned() doesn't return true on s390x

Vaibhav Vaingankar vaibhavv at us.ibm.com
Mon Feb 6 10:14:41 UTC 2017



Hello,

We are building HBase source code using OpenJDK 8 on s390x platform, we
encountered some testcase failures related to bit unalignment.
We discovered that java.nio.Bits.unaligned() doesn't return true on s390x.
However similar issue had reported on ppc and was resolved by adding ppc
support in ByteArrayAccess.java  and ByteArrayAccess.java, following is the
changeset link:
http://hg.openjdk.java.net/jdk8u/jdk8u-dev/jdk/rev/8d16f74380a7

Referring  to above changeset we added s390x support in both the classes.
The resultant JDK could resolve the testcase failure.

Let me know how to add s390x support to the OpenJDK 8 source. Any
suggestion are appreciated.

Thanks and regards.
Vaibhav Vaingankar


More information about the jdk8u-dev mailing list