RFR: 8256302: releasing oopStorage when deflating allows for faster deleting
Daniel D. Daugherty
dcubed at openjdk.org
Tue Nov 29 21:33:41 UTC 2022
On Sun, 27 Nov 2022 10:36:19 GMT, Kim Barrett <kbarrett 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 1475:
>
>> 1473: };
>> 1474:
>> 1475: static size_t delete_monitors(GrowableArray<ObjectMonitor*> delete_list) {
>
> The argument is passed by value, so is copied.
Good catch! I'll fix that.
-------------
PR: https://git.openjdk.org/jdk/pull/11296
More information about the hotspot-runtime-dev
mailing list