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

Kim Barrett kbarrett at openjdk.org
Sun Nov 27 10:52:09 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.

Not really a review, just a drive-by note of a problem.

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.

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

Changes requested by kbarrett (Reviewer).

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


More information about the hotspot-runtime-dev mailing list