Skip to content

Commit

Permalink
Improve comments
Browse files Browse the repository at this point in the history
  • Loading branch information
pchilano committed Dec 18, 2024
1 parent f3a4219 commit a7f68de
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/hotspot/share/runtime/continuation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -162,9 +162,10 @@ freeze_result Continuation::try_preempt(JavaThread* current, oop continuation) {
JVMTI_ONLY(jubm.set_result(res);)

if (current->has_pending_exception()) {
assert(res == freeze_exception, "");
assert(res == freeze_exception, "expecting an exception result from freeze");
// We don't want to throw exceptions, especially when returning
// from monitorenter since the compiler does not expect one.
// from monitorenter since the compiler does not expect one. We
// just ignore the exception and pin the vthread to the carrier.
current->clear_pending_exception();
}
return res;
Expand Down

0 comments on commit a7f68de

Please sign in to comment.