JDK-8324682 : Remove redefinition of NULL for XLC compiler
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 23
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: aix
  • Submitted: 2024-01-25
  • Updated: 2024-03-19
  • Resolved: 2024-03-12
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 23
23 b14Fixed
Related Reports
Blocks :  
Relates :  
Description
In globalDefinitions_xlc.hpp there is a redefinition of NULL to work around an issue with one of the AIX headers (<dirent.h>).  Once all uses of NULL in HotSpot have been replaced with nullptr, there is no longer any need for this, and it can be removed.

Comments
Changeset: 313e814b Author: Suchismith Roy <sroy@openjdk.org> Committer: Kim Barrett <kbarrett@openjdk.org> Date: 2024-03-12 17:19:49 +0000 URL: https://git.openjdk.org/jdk/commit/313e814bc924c53f03052dde2ac33e74f28a82ca
12-03-2024

[~mbaesken] - see JDK-8324686
12-03-2024

Seems we have the same/similar e.g. in src/hotspot/share/utilities/globalDefinitions_visCPP.hpp // NULL vs NULL_WORD: // On Linux NULL is defined as a special type '__null'. Assigning __null to // integer variable will cause gcc warning. Use NULL_WORD in places where a // pointer is stored as integer value. #define NULL_WORD NULL
12-03-2024

A pull request was submitted for review. URL: https://git.openjdk.org/jdk/pull/18064 Date: 2024-02-29 14:05:53 +0000
29-02-2024