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 committed Feb 9, 2024
1 parent 8b70b8d commit 52d4976
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

1 comment on commit 52d4976

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.