Blame SOURCES/8165231-rh1437545.patch

e24496
# HG changeset patch
e24496
# User horii
e24496
# Date 1473905514 14400
e24496
#      Wed Sep 14 22:11:54 2016 -0400
e24496
# Node ID 8d16f74380a78eb76cb33183a64440316393903e
e24496
# Parent  be698ac288484ab140715ee29ed9335e6ea8a33b
e24496
8165231: java.nio.Bits.unaligned() doesn't return true on ppc
e24496
Reviewed-by: simonis, coffeys
e24496
e24496
diff --git a/src/share/classes/java/nio/Bits.java b/src/share/classes/java/nio/Bits.java
e24496
--- openjdk/jdk/src/share/classes/java/nio/Bits.java
e24496
+++ openjdk/jdk/src/share/classes/java/nio/Bits.java
e24496
@@ -1,5 +1,5 @@
e24496
 /*
e24496
- * Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved.
e24496
+ * Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
e24496
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
e24496
  *
e24496
  * This code is free software; you can redistribute it and/or modify it
e24496
@@ -614,7 +614,8 @@
e24496
         String arch = AccessController.doPrivileged(
e24496
             new sun.security.action.GetPropertyAction("os.arch"));
e24496
         unaligned = arch.equals("i386") || arch.equals("x86")
e24496
-            || arch.equals("amd64") || arch.equals("x86_64");
e24496
+            || arch.equals("amd64") || arch.equals("x86_64")
e24496
+            || arch.equals("ppc64") || arch.equals("ppc64le");
e24496
         unalignedKnown = true;
e24496
         return unaligned;
e24496
     }
e24496
diff --git a/src/share/classes/sun/security/provider/ByteArrayAccess.java b/src/share/classes/sun/security/provider/ByteArrayAccess.java
e24496
--- openjdk/jdk/src/share/classes/sun/security/provider/ByteArrayAccess.java
e24496
+++ openjdk/jdk/src/share/classes/sun/security/provider/ByteArrayAccess.java
e24496
@@ -1,5 +1,5 @@
e24496
 /*
e24496
- * Copyright (c) 2006, 2013, Oracle and/or its affiliates. All rights reserved.
e24496
+ * Copyright (c) 2006, 2016, Oracle and/or its affiliates. All rights reserved.
e24496
  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
e24496
  *
e24496
  * This code is free software; you can redistribute it and/or modify it
e24496
@@ -94,7 +94,7 @@
e24496
         String arch = java.security.AccessController.doPrivileged
e24496
             (new sun.security.action.GetPropertyAction("os.arch", ""));
e24496
         return arch.equals("i386") || arch.equals("x86") || arch.equals("amd64")
e24496
-            || arch.equals("x86_64");
e24496
+            || arch.equals("x86_64") || arch.equals("ppc64") || arch.equals("ppc64le");
e24496
     }
e24496
 
e24496
     /**