Skip to content

Commit 28e49e9

Browse files
author
Kim Barrett
committed
8345505: Fix -Wzero-as-null-pointer-constant warnings in zero code
Reviewed-by: dholmes
1 parent db9eab3 commit 28e49e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hotspot/cpu/zero/frame_zero.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -125,10 +125,10 @@ bool frame::safe_for_sender(JavaThread *thread) {
125125
bool frame::is_interpreted_frame_valid(JavaThread *thread) const {
126126
assert(is_interpreted_frame(), "Not an interpreted frame");
127127
// These are reasonable sanity checks
128-
if (fp() == 0 || (intptr_t(fp()) & (wordSize-1)) != 0) {
128+
if (fp() == nullptr || (intptr_t(fp()) & (wordSize-1)) != 0) {
129129
return false;
130130
}
131-
if (sp() == 0 || (intptr_t(sp()) & (wordSize-1)) != 0) {
131+
if (sp() == nullptr || (intptr_t(sp()) & (wordSize-1)) != 0) {
132132
return false;
133133
}
134134
// These are hacks to keep us out of trouble.

0 commit comments

Comments
 (0)