Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

java.nio.Bits.unaligned() return false for ARM architecture #248

Closed
davidshtian opened this issue Jul 6, 2020 · 2 comments
Closed

java.nio.Bits.unaligned() return false for ARM architecture #248

davidshtian opened this issue Jul 6, 2020 · 2 comments

Comments

@davidshtian
Copy link

Describe the bug

During the usage, a issue was encountered caused by java.nio.Bits.unaligned(). This attribute only returns true for i386|x86|amd64|x86_64|ppc64|ppc64le architecture, but not for aarch64, the issue was also described in java.nio.Bits.unaligned() doesn't handle aarch64. While AdoptOpenJDK has fixed the issue (like jdk8u191-b12 and later versions) with patches, make it return true for aarch64.

To Reproduce

As shown in the source code in Corretto 8.252.09.1:
https://github.com/corretto/corretto-8/blob/release-8.252.09.1/src/jdk/src/share/classes/java/nio/Bits.java

Expected behavior

Return true for aarch64 in java.nio.Bits.unaligned()

Screenshots

N/A

Platform information

OS: [Debian]
Version: [8.252.09.1]

Additional context

AdoptOpenJDK jdk8u191-b12 - https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/tag/jdk8u191-b12

@cliveverghese
Copy link
Contributor

cliveverghese commented Jul 6, 2020

Hi,

Thank you for reporting this issue. We are working on fixing this.

Regards,
Clive Verghese

@davecurrie
Copy link
Contributor

This is fixed in Corretto 8u262. See the Releases page for downloads.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants