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.
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;
| ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~