RFR: 8291418: adjust monitor deflation logging and deflate_idle_monitors use

Patricio Chilano Mateo pchilanomate at openjdk.org
Wed Nov 23 16:32:57 UTC 2022


On Tue, 22 Nov 2022 17:10:56 GMT, Daniel D. Daugherty <dcubed at openjdk.org> wrote:

> Trivial fixes to monitor deflation logging and deflate_idle_monitors use.

Looks good to me.

src/hotspot/share/runtime/synchronizer.cpp line 1551:

> 1549:   if (ls != NULL) {
> 1550:     timer.stop();
> 1551:     if (deflated_count != 0 || unlinked_count != 0 || deleted_count != 0 || log_is_enabled(Debug, monitorinflation)) {

Why check both unlinked_count and deleted_count? Shouldn't they be equal if we got here?

-------------

Marked as reviewed by pchilanomate (Reviewer).

PR: https://git.openjdk.org/jdk/pull/11293


More information about the hotspot-runtime-dev mailing list