JDK-8344917 : Fix recent NULL usage backsliding
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2024-11-24
  • Updated: 2024-11-28
  • Resolved: 2024-11-24
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 24
24 b26Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Description
In the 2 weeks since JDK-8342860 we've had some more backsliding in the use of NULL in HotSpot code. Some of these are NULL in comments that should be null.  Some are NULL in code that should be nullptr.

8338383: Implement JEP 491: Synchronize Virtual Threads without Pinning
./cpu/aarch64/templateInterpreterGenerator_aarch64.cpp
./cpu/riscv/templateInterpreterGenerator_riscv.cpp 
./cpu/x86/templateInterpreterGenerator_x86.cpp 

8331497: Implement JEP 483: Ahead-of-Time Class Loading & Linking
./share/cds/metaspaceShared.cpp 
./share/oops/constantPool.cpp -- 2 occurrences

8305895: Implement JEP 450: Compact Object Headers (Experimental)
./share/cds/archiveUtils.hpp 

8229278: Improve print_location for invalid heap pointers
./share/gc/shared/locationPrinter.inline.hpp


Comments
Changeset: a83cfe26 Branch: master Author: Kim Barrett <kbarrett@openjdk.org> Date: 2024-11-24 17:10:31 +0000 URL: https://git.openjdk.org/jdk/commit/a83cfe26583db078ecd754d9609111c0c6dac6a4
24-11-2024

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/22348 Date: 2024-11-24 11:26:25 +0000
24-11-2024