Skip to content

Commit

Permalink
fix warnings in zero
Browse files Browse the repository at this point in the history
  • Loading branch information
kimbarrett committed Dec 12, 2024
1 parent f8ad358 commit 6646aaa
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hotspot/cpu/zero/frame_zero.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -125,10 +125,10 @@ bool frame::safe_for_sender(JavaThread *thread) {
bool frame::is_interpreted_frame_valid(JavaThread *thread) const {
assert(is_interpreted_frame(), "Not an interpreted frame");
// These are reasonable sanity checks
if (fp() == 0 || (intptr_t(fp()) & (wordSize-1)) != 0) {
if (fp() == nullptr || (intptr_t(fp()) & (wordSize-1)) != 0) {
return false;
}
if (sp() == 0 || (intptr_t(sp()) & (wordSize-1)) != 0) {
if (sp() == nullptr || (intptr_t(sp()) & (wordSize-1)) != 0) {
return false;
}
// These are hacks to keep us out of trouble.
Expand Down

0 comments on commit 6646aaa

Please sign in to comment.