Skip to content

Commit

Permalink
fill_in assert update
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinjwalls committed May 3, 2024
1 parent 2989ad4 commit 5139f33
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/hotspot/share/runtime/vframeArray.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,11 @@ void vframeArrayElement::fill_in(compiledVFrame* vf, bool realloc_failures) {
MonitorInfo* monitor = list->at(index);
assert(!monitor->owner_is_scalar_replaced() || realloc_failures, "object should be reallocated already");
BasicObjectLock* dest = _monitors->at(index);
if (monitor->owner_is_scalar_replaced() || monitor->owner() == nullptr) {
if (monitor->owner_is_scalar_replaced()) {
dest->set_obj(nullptr);
} else {
assert(!monitor->owner()->is_unlocked(), "object must be null or locked");
assert(monitor->owner() != nullptr, "monitor owner must not be null");
assert(!monitor->owner()->is_unlocked(), "monitor must be locked");
dest->set_obj(monitor->owner());
assert(ObjectSynchronizer::current_thread_holds_lock(current_thread, Handle(current_thread, dest->obj())),
"should be held, before move_to");
Expand Down

0 comments on commit 5139f33

Please sign in to comment.