← Back to team overview

openjdk team mailing list archive

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

 

Since this is already landed upstream, I suppose we would pick this up
as part of the quarterly security update; but assigning to Tiago to
confirm / track.

** Changed in: openjdk-8 (Ubuntu)
     Assignee: Taco Screen team (taco-screen-team) => Tiago Stürmer Daitx (tdaitx)

-- 
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