RFR: 8256302: releasing oopStorage when deflating allows for faster deleting
Coleen Phillimore
coleenp at openjdk.org
Mon Nov 28 22:57:50 UTC 2022
On Wed, 23 Nov 2022 00:59:27 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 1572:
>
>> 1570: } else {
>> 1571: // A non-JavaThread can just free the ObjectMonitors:
>> 1572: deleted_count = delete_monitors(delete_list);
>
> Which non-JavaThread can execute this code?
Wasn't it the safepoint cleanup actions where the VMThread could call this?
-------------
PR: https://git.openjdk.org/jdk/pull/11296
More information about the hotspot-runtime-dev
mailing list