hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ey...@apache.org
Subject [18/50] hadoop git commit: HADOOP-15598. DataChecksum calculate checksum is contented on hashtable synchronization. Contributed by Prasanth Jayachandran.
Date Fri, 27 Jul 2018 00:12:41 GMT
HADOOP-15598. DataChecksum calculate checksum is contented on hashtable synchronization. Contributed
by Prasanth Jayachandran.

(cherry picked from commit 0c7a578927032d5d1ef3469283d7d1fb7dee2a56)


Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/34f1dd03
Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/34f1dd03
Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/34f1dd03

Branch: refs/remotes/origin/branch-3.1
Commit: 34f1dd03ee0c31173eb3a0b88a5fad7796a30c24
Parents: 44beab0
Author: Wei-Chiu Chuang <weichiu@apache.org>
Authored: Mon Jul 16 11:32:45 2018 -0700
Committer: Wei-Chiu Chuang <weichiu@apache.org>
Committed: Mon Jul 16 11:33:43 2018 -0700

----------------------------------------------------------------------
 .../src/main/java/org/apache/hadoop/util/NativeCrc32.java        | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hadoop/blob/34f1dd03/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/NativeCrc32.java
----------------------------------------------------------------------
diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/NativeCrc32.java
b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/NativeCrc32.java
index 0669b0a..3142df2 100644
--- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/NativeCrc32.java
+++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/util/NativeCrc32.java
@@ -28,12 +28,12 @@ import com.google.common.annotations.VisibleForTesting;
  * natively.
  */
 class NativeCrc32 {
-  
+  private static final boolean isSparc = System.getProperty("os.arch").toLowerCase().startsWith("sparc");
   /**
    * Return true if the JNI-based native CRC extensions are available.
    */
   public static boolean isAvailable() {
-    if (System.getProperty("os.arch").toLowerCase().startsWith("sparc")) {
+    if (isSparc) {
       return false;
     } else {
       return NativeCodeLoader.isNativeCodeLoaded();


---------------------------------------------------------------------
To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org
For additional commands, e-mail: common-commits-help@hadoop.apache.org


Mime
View raw message