[8u] RFR(XXS): 8165231: java.nio.Bits.unaligned() doesn't return true on ppc

Volker Simonis volker.simonis at gmail.com
Tue Sep 13 12:09:39 UTC 2016

Hi Sean,

thanks a lot for the fast response. I've updated the bug entry as
requested and will push the change - maybe with the following
potential improvement:

@Hiroshi: also maybe not that performance relevant, I think we should
we also fix sun/security/provider/ByteArrayAccess.java which contains
the same construct:

    // Return whether this platform supports full speed int/long memory access
    // at unaligned addresses.
    // This code was copied from java.nio.Bits because there is no equivalent
    // public API.
    private static boolean unaligned() {
        String arch = java.security.AccessController.doPrivileged
            (new sun.security.action.GetPropertyAction("os.arch", ""));
        return arch.equals("i386") || arch.equals("x86") || arch.equals("amd64")
            || arch.equals("x86_64");


More information about the core-libs-dev mailing list