Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 16A3A200BF0 for ; Fri, 30 Dec 2016 19:45:10 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 1555F160B32; Fri, 30 Dec 2016 18:45:10 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 8799B160B19 for ; Fri, 30 Dec 2016 19:45:09 +0100 (CET) Received: (qmail 14043 invoked by uid 500); 30 Dec 2016 18:45:08 -0000 Mailing-List: contact reviews-help@spark.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list reviews@spark.apache.org Received: (qmail 14025 invoked by uid 99); 30 Dec 2016 18:45:08 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 30 Dec 2016 18:45:08 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id 56BEDDFB6F; Fri, 30 Dec 2016 18:45:08 +0000 (UTC) From: kiszk To: reviews@spark.apache.org Reply-To: reviews@spark.apache.org References: In-Reply-To: Subject: [GitHub] spark pull request #16403: [SPARK-18819][CORE] Double byte alignment on ARM ... Content-Type: text/plain Message-Id: <20161230184508.56BEDDFB6F@git1-us-west.apache.org> Date: Fri, 30 Dec 2016 18:45:08 +0000 (UTC) archived-at: Fri, 30 Dec 2016 18:45:10 -0000 Github user kiszk commented on a diff in the pull request: https://github.com/apache/spark/pull/16403#discussion_r94249364 --- Diff: common/unsafe/src/main/java/org/apache/spark/unsafe/Platform.java --- @@ -244,6 +251,18 @@ public static void throwException(Throwable t) { LONG_ARRAY_OFFSET = _UNSAFE.arrayBaseOffset(long[].class); FLOAT_ARRAY_OFFSET = _UNSAFE.arrayBaseOffset(float[].class); DOUBLE_ARRAY_OFFSET = _UNSAFE.arrayBaseOffset(double[].class); + + // determine whether double access should be aligned. + String arch = System.getProperty("os.arch", ""); + if (arch.matches("^(arm|arm32)")) { --- End diff -- What's happen on ARM 64-bit? --- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastructure@apache.org or file a JIRA ticket with INFRA. --- --------------------------------------------------------------------- To unsubscribe, e-mail: reviews-unsubscribe@spark.apache.org For additional commands, e-mail: reviews-help@spark.apache.org