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

Coleen Phillimore coleenp at openjdk.org
Tue Nov 29 17:24:26 UTC 2022


On Mon, 28 Nov 2022 22:51:10 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:

>> 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?

There's a call from the VMThread ObjectSynchronizer::do_final_audit_and_print_stats() now that can call this.

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

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


More information about the hotspot-runtime-dev mailing list