JDK-8251930 : AArch64: Native types mismatch in hotspot
  • Type: Bug
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 11,16
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • CPU: aarch64
  • Submitted: 2020-08-18
  • Updated: 2022-01-19
  • Resolved: 2020-08-26
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 11 JDK 16
11.0.14Fixed 16 b13Fixed
Related Reports
Relates :  
Relates :  
Description
Aarch64 code sometime freely exchange int64_t and intptr_t. This is a problem for toolchains that do not have shared underlying type for them. 

I.e darwin uses `long long` for int64_t https://github.com/apple/darwin-xnu/blob/master/bsd/sys/_types/_int64_t.h and long for intptr_t https://github.com/apple/darwin-xnu/blob/master/bsd/arm/_types.h

For example, declaration
http://hg.openjdk.java.net/jdk/jdk/file/f74d10596242/src/hotspot/cpu/aarch64/assembler_aarch64.hpp#l716
defintion:
http://hg.openjdk.java.net/jdk/jdk/file/f74d10596242/src/hotspot/cpu/aarch64/assembler_aarch64.cpp#l1546


Comments
Fix Request(11u): this backport is a prerequest for mac-aarch64 port. Applies almost clean. aarch64-only change. Testing - tier1/2
09-09-2021

URL: https://hg.openjdk.java.net/jdk/jdk/rev/c5022acae181 User: vkempik Date: 2020-08-26 06:19:45 +0000
26-08-2020