← Back to team overview

openjdk team mailing list archive

[Bug 1677612] [NEW] java.nio.Bits.unaligned() doesn't return true on ppc

 

You have been subscribed to a public bug:

== Comment: #0 - Gustavo Bueno Romero <gromero@xxxxxxxxxx> - 2017-03-30 08:16:11 ==
---Problem Description---
Some open sources (such as Spark 2.0) check java.nio.Bits.unaligned() to recognize support of unaligned memory access in the platform but ppc64 arch is not included although it supports it
 
---uname output---
Linux gromero16 4.4.0-67-generic #88-Ubuntu SMP Wed Mar 8 16:33:13 UTC 2017 ppc64le ppc64le ppc64le GNU/Linux
 
Machine Type = not relevant 
 
---Debugger---
A debugger is not configured
 
---Steps to Reproduce---
 The following test-case returns "false" but must return "true" if the problem is fixed:

import java.lang.reflect.Field;
public class UnalignedTest {
    public static void main(String[] args) throws Exception {
        Class clazz = Class.forName("java.nio.DirectByteBuffer");
        Field field = clazz.getDeclaredField("unaligned");
        field.setAccessible(true);
        System.out.println(field.getBoolean(null));
    }
}
 
Contact Information = gromero@xxxxxxxxxx 
 
Userspace tool common name: java 
 
The userspace tool has the following bit modes: 64-bit 

Userspace rpm: 8u121-b13-0ubuntu1.16.04.2

Userspace tool obtained from project website:  na 
 
*Additional Instructions for gromero@xxxxxxxxxx:
-Attach ltrace and strace of userspace application.

== Comment: #1 - Gustavo Bueno Romero <gromero@xxxxxxxxxx> - 2017-03-30 08:18:20 ==
Dear maintainer, please consider applying the fix that is already upstream on 8u:
https://bugs.openjdk.java.net/browse/JDK-8165231

** Affects: openjdk-8 (Ubuntu)
     Importance: Undecided
     Assignee: Taco Screen team (taco-screen-team)
         Status: New


** Tags: architecture-ppc64 bugnameltc-153037 severity-medium targetmilestone-inin16043
-- 
java.nio.Bits.unaligned() doesn't return true on ppc
https://bugs.launchpad.net/bugs/1677612
You received this bug notification because you are a member of OpenJDK, which is subscribed to openjdk-8 in Ubuntu.


References