RFR: 8335294: Fix simple -Wzero-as-null-pointer-constant warnings in gc code

Coleen Phillimore coleenp at openjdk.org
Fri Jun 28 12:09:19 UTC 2024


On Fri, 28 Jun 2024 03:44:53 GMT, Kim Barrett <kbarrett at openjdk.org> wrote:

> Please review this change that replaces some uses of literal 0 as a null
> pointer constant in gc code to instead use nullptr.
> 
> There is also one place where the use was eliminated entirely, because it was
> dead code following a [[noreturn]] call.
> 
> Testing: mach5 tier1.

Looks good.  Does -Wzero-as-null-constant prevent any new NULL from creeping in also?

-------------

Marked as reviewed by coleenp (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/19934#pullrequestreview-2147845270


More information about the hotspot-dev mailing list