← Back to team overview

openjdk team mailing list archive

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

 

Steve,

This looks like one for Foundations to pick up.

                  Michael


On 03/30/2017 06:39 AM, Launchpad Bug Tracker wrote:
> bugproxy (bugproxy) has assigned this bug to you for Ubuntu:
>
> == 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: ubuntu
>      Importance: Undecided
>      Assignee: Taco Screen team (taco-screen-team)
>          Status: New
>
>
> ** Tags: architecture-ppc64 bugnameltc-153037 severity-medium targetmilestone-inin16043

-- 
Michael Hohnbaum
OIL Program Manager
Power (ppc64el) Development Project Manager
Canonical, Ltd.

-- 
You received this bug notification because you are a member of OpenJDK,
which is subscribed to openjdk-8 in Ubuntu.
https://bugs.launchpad.net/bugs/1677612

Title:
  java.nio.Bits.unaligned() doesn't return true on ppc

Status in openjdk-8 package in Ubuntu:
  New

Bug description:
  == 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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openjdk-8/+bug/1677612/+subscriptions


References