Skip to content

Commit

Permalink
null nullptr oops
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinjwalls committed May 8, 2024
1 parent f4fe65d commit 47ddc4b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hotspot/share/runtime/vframeArray.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -314,10 +314,10 @@ void vframeArrayElement::unpack_on_stack(int caller_actual_parameters,
top = iframe()->previous_monitor_in_interpreter_frame(top);
BasicObjectLock* src = _monitors->at(index);
top->set_obj(src->obj());
assert(src->obj() != null || ObjectSynchronizer::current_thread_holds_lock(thread, Handle(thread, src->obj())),
assert(src->obj() != nullptr || ObjectSynchronizer::current_thread_holds_lock(thread, Handle(thread, src->obj())),
"should be held, before move_to");
src->lock()->move_to(src->obj(), top->lock());
assert(src->obj() != null || ObjectSynchronizer::current_thread_holds_lock(thread, Handle(thread, src->obj())),
assert(src->obj() != nullptr || ObjectSynchronizer::current_thread_holds_lock(thread, Handle(thread, src->obj())),
"should be held, after move_to");
}
if (ProfileInterpreter) {
Expand Down

0 comments on commit 47ddc4b

Please sign in to comment.