Blame SOURCES/8165231-rh1437545.patch

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