-
Enhancement
-
Resolution: Fixed
-
P4
-
17, 21, 22, 23
-
b10
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8328082 | 21.0.4-oracle | Stefan Karlsson | P4 | Resolved | Fixed | b01 |
JDK-8328337 | 21.0.4 | Aleksey Shipilev | P4 | Resolved | Fixed | b01 |
If ObjectSynchronizer::chk_in_use_entry is called while monitor deflation is safepoint polled/blocked, we can have deflated monitors on the in-use list and we can get a huge number of lines stating:
[10.570s][debug][monitorinflation] WARNING: monitor=0x00007fa1004f8480: in-use monitor is deflated.
This comes from the following code:
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));
return;
}
There are tentative plans to rewrite the monitor deflation to unlink deflated monitors from the in-use list *before* the safepoint polls, but I'd like to suggest that we make an interim patch that deletes this warning.
[10.570s][debug][monitorinflation] WARNING: monitor=0x00007fa1004f8480: in-use monitor is deflated.
This comes from the following code:
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));
return;
}
There are tentative plans to rewrite the monitor deflation to unlink deflated monitors from the in-use list *before* the safepoint polls, but I'd like to suggest that we make an interim patch that deletes this warning.
- backported by
-
JDK-8328082 Safepoint polling in monitor deflation can cause massive logs
- Resolved
-
JDK-8328337 Safepoint polling in monitor deflation can cause massive logs
- Resolved
- relates to
-
JDK-8319048 Monitor deflation unlink phase prolongs time to safepoint
- Resolved
-
JDK-8319896 Remove monitor deflation from final audit
- Resolved
- links to
-
Commit openjdk/jdk21u-dev/d1af31b6
-
Commit openjdk/jdk/52d49761
-
Review openjdk/jdk21u-dev/337
-
Review openjdk/jdk/17752
(3 links to)