Skip to content

Commit

Permalink
Update Platform.java
Browse files Browse the repository at this point in the history
Added arch.equals("s390x")
  • Loading branch information
vibhutisawant committed Oct 28, 2019
1 parent 7458f4e commit 0ad7802
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public final class Platform {
static {
boolean _unaligned;
String arch = System.getProperty("os.arch", "");
if (arch.equals("ppc64le") || arch.equals("ppc64") || arch.matches("s390x")) {
if (arch.equals("ppc64le") || arch.equals("ppc64") || arch.equals("s390x")) {
// Since java.nio.Bits.unaligned() doesn't return true on ppc (See JDK-8165231), but
// ppc64 and ppc64le support it
_unaligned = true;
Expand Down

0 comments on commit 0ad7802

Please sign in to comment.