RFR: 8256302: releasing oopStorage when deflating allows for faster deleting [v5]
Daniel D. Daugherty
dcubed at openjdk.org
Tue Jun 6 20:13:12 UTC 2023
On Tue, 6 Jun 2023 19:53:06 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:
>> src/hotspot/share/runtime/objectMonitor.cpp line 598:
>>
>>> 596:
>>> 597: // Release object's oop storage since the ObjectMonitor has been deflated:
>>> 598: release_object();
>>
>> Just to be clear, deflate_monitor() is called when a JavaThread is
>> in VM (or by the VM Thread) so it is safe to call release.
>
> I hope OopStorage.release() will assert if it's not safe. I think it does.
Yes it will assert() when it is called from a not safe context.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/11296#discussion_r1220263837
More information about the hotspot-runtime-dev
mailing list