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

Daniel D. Daugherty dcubed at openjdk.org
Fri Dec 2 21:27:19 UTC 2022


On Wed, 30 Nov 2022 22:02:42 GMT, David Holmes <dholmes 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:"

I'll fix that.

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

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


More information about the hotspot-runtime-dev mailing list