-
Sub-task
-
Resolution: Fixed
-
P4
-
21, 22
-
b18
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8347485 | 21.0.7-oracle | Fairoz Matte | P4 | Resolved | Fixed | b02 |
JDK-8344864 | 21.0.6 | Sendao Yan | P4 | Resolved | Fixed | b05 |
The following warnings are emitted when compiling with gcc without -fno-delete-null-pointer-checks:
In file included from .../src/hotspot/share/memory/allocation.hpp:29,
from .../src/hotspot/share/classfile/classLoaderData.hpp:28,
from .../src/hotspot/share/precompiled/precompiled.hpp:34:
ad_x86_pipeline.cpp: In member function 'uint Pipeline::operand_latency(uint, const Pipeline*) const':
.../src/hotspot/share/utilities/debug.hpp:152:7: warning: nonnull argument 'this' compared to NULL [-Wnonnull-compare]
152 | if (! VMASSERT_CHECK_PASSED(p)) { \
| ^
.../src/hotspot/share/utilities/debug.hpp:160:24: note: in expansion of macro 'vmassert'
160 | #define assert(p, ...) vmassert(p, __VA_ARGS__)
| ^~~~~~~~
ad_x86_pipeline.cpp:142:3: note: in expansion of macro 'assert'
.../src/hotspot/share/asm/codeBuffer.cpp: In member function 'void CodeBuffer::print()':
.../src/hotspot/share/asm/codeBuffer.cpp:1064:3: warning: nonnull argument 'this' compared to NULL [-Wnonnull-compare]
1064 | if (this == nullptr) {
| ^~
In file included from .../src/hotspot/share/memory/allocation.hpp:29,
from .../src/hotspot/share/classfile/classLoaderData.hpp:28,
from .../src/hotspot/share/precompiled/precompiled.hpp:34:
ad_x86_pipeline.cpp: In member function 'uint Pipeline::operand_latency(uint, const Pipeline*) const':
.../src/hotspot/share/utilities/debug.hpp:152:7: warning: nonnull argument 'this' compared to NULL [-Wnonnull-compare]
152 | if (! VMASSERT_CHECK_PASSED(p)) { \
| ^
.../src/hotspot/share/utilities/debug.hpp:160:24: note: in expansion of macro 'vmassert'
160 | #define assert(p, ...) vmassert(p, __VA_ARGS__)
| ^~~~~~~~
ad_x86_pipeline.cpp:142:3: note: in expansion of macro 'assert'
.../src/hotspot/share/asm/codeBuffer.cpp: In member function 'void CodeBuffer::print()':
.../src/hotspot/share/asm/codeBuffer.cpp:1064:3: warning: nonnull argument 'this' compared to NULL [-Wnonnull-compare]
1064 | if (this == nullptr) {
| ^~
- backported by
-
JDK-8344864 Fix nonnull-compare warnings
- Resolved
-
JDK-8347485 Fix nonnull-compare warnings
- Resolved
- links to
-
Commit openjdk/jdk/516cfb13
-
Commit(master) openjdk/jdk21u-dev/ef5702e7
-
Review openjdk/jdk/15927
-
Review(master) openjdk/jdk21u-dev/1172
(1 links to)