diff --git a/common/unsafe/src/main/java/org/apache/spark/unsafe/Platform.java b/common/unsafe/src/main/java/org/apache/spark/unsafe/Platform.java index 05c1abda5bc2f..5fd79aef98bbe 100644 --- a/common/unsafe/src/main/java/org/apache/spark/unsafe/Platform.java +++ b/common/unsafe/src/main/java/org/apache/spark/unsafe/Platform.java @@ -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;