JDK-8301494 : Replace NULL with nullptr in cpu/arm
  • Type: Sub-task
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 21
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2023-01-31
  • Updated: 2023-05-23
  • Resolved: 2023-02-17
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 21
21 b11Fixed
Related Reports
Relates :  
Description
Do the conversion in the cpu/arm sub-directory and all of its files.
Comments
I experienced the same failure as Marc, and git bisect pointed at this commit.
20-02-2023

FYI: arm32 build fails for me since this commit with the following message: /workspace/src/hotspot/cpu/arm/interpreterRT_arm.cpp: In member function 'virtual void SlowSignatureHandler::pass_object()': /workspace/src/hotspot/cpu/arm/interpreterRT_arm.cpp:309:56: error: operands to '?:' have different types 'std::nullptr_t' and 'intptr_t' {aka 'int'} 309 | _toGP[_last_gp++] = (*(intptr_t*)from_addr == 0) ? nullptr : from_addr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~ /workspace/src/hotspot/cpu/arm/interpreterRT_arm.cpp:311:45: error: operands to '?:' have different types 'std::nullptr_t' and 'intptr_t' {aka 'int'} 311 | *_to++ = (*(intptr_t*)from_addr == 0) ? nullptr : from_addr; | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~
18-02-2023

Changeset: c4ffe4bf Author: Johan Sjölen <jsjolen@openjdk.org> Date: 2023-02-17 11:24:41 +0000 URL: https://git.openjdk.org/jdk/commit/c4ffe4bf6369d5b271aa8689b8648f3fe8dcabed
17-02-2023

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/12322 Date: 2023-01-31 11:39:38 +0000
31-01-2023