RFR: 8256302: releasing oopStorage when deflating allows for faster deleting

David Holmes dholmes at openjdk.org
Wed Nov 30 22:04:55 UTC 2022


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

> Releasing ObjectMonitor oopStorage earlier when deflating allows ObjectMonitor
> deletion by a JavaThread (usually the MonitorDeflationThread) to happen while a
> ThreadBlockInVM helper is in place. This should improve time-to-safepoint.

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

> 1558:       }
> 1559:       // Make the calling JavaThread blocked (safepoint safe) while we
> 1560:       // free the ObjectMonitors:

Suggestion: add "so we don't delay safepoints whilst doing that:"

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

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


More information about the hotspot-runtime-dev mailing list