Skip to content

Commit

Permalink
8325437: Safepoint polling in monitor deflation can cause massive logs
Browse files Browse the repository at this point in the history
Reviewed-by: aboldtch, dcubed, shade
  • Loading branch information
stefank authored and vpaprotsk committed Mar 26, 2024
1 parent 80be92b commit 8315505
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/hotspot/share/runtime/synchronizer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1984,11 +1984,10 @@ void ObjectSynchronizer::chk_in_use_list(outputStream* out, int *error_cnt_p) {
void ObjectSynchronizer::chk_in_use_entry(ObjectMonitor* n, outputStream* out,
int* error_cnt_p) {
if (n->owner_is_DEFLATER_MARKER()) {
// This should not happen, but if it does, it is not fatal.
out->print_cr("WARNING: monitor=" INTPTR_FORMAT ": in-use monitor is "
"deflated.", p2i(n));
// This could happen when monitor deflation blocks for a safepoint.
return;
}

if (n->header().value() == 0) {
out->print_cr("ERROR: monitor=" INTPTR_FORMAT ": in-use monitor must "
"have non-null _header field.", p2i(n));
Expand Down

0 comments on commit 8315505

Please sign in to comment.