Most places doing a null check on CompressedOops::base() compare it to nullptr. However, there are a few places that compare it to a literal 0. Also, one caller of CompressedOops::set_base provides a literal 0 value. All of these trigger -Wzero-as-null-pointer-constant warnings.
- blocks
-
JDK-8332189 Enable -Wzero-as-null-pointer-constant
- Open
- links to
-
Commit(master) openjdk/jdk/25e89291
-
Review(master) openjdk/jdk/21172