Skip to content

Commit 52d4976

Browse files
committedFeb 9, 2024
8325437: Safepoint polling in monitor deflation can cause massive logs
Reviewed-by: aboldtch, dcubed, shade
1 parent 8b70b8d commit 52d4976

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed
 

‎src/hotspot/share/runtime/synchronizer.cpp

+2-3
Original file line numberDiff line numberDiff line change
@@ -1984,11 +1984,10 @@ void ObjectSynchronizer::chk_in_use_list(outputStream* out, int *error_cnt_p) {
19841984
void ObjectSynchronizer::chk_in_use_entry(ObjectMonitor* n, outputStream* out,
19851985
int* error_cnt_p) {
19861986
if (n->owner_is_DEFLATER_MARKER()) {
1987-
// This should not happen, but if it does, it is not fatal.
1988-
out->print_cr("WARNING: monitor=" INTPTR_FORMAT ": in-use monitor is "
1989-
"deflated.", p2i(n));
1987+
// This could happen when monitor deflation blocks for a safepoint.
19901988
return;
19911989
}
1990+
19921991
if (n->header().value() == 0) {
19931992
out->print_cr("ERROR: monitor=" INTPTR_FORMAT ": in-use monitor must "
19941993
"have non-null _header field.", p2i(n));

0 commit comments

Comments
 (0)
Please sign in to comment.