RFR: 8319137: release _object in ObjectMonitor dtor to avoid races [v2]

Aleksey Shipilev shade at openjdk.org
Mon Nov 20 17:09:42 UTC 2023


On Mon, 20 Nov 2023 16:36:06 GMT, Patricio Chilano Mateo <pchilanomate at openjdk.org> wrote:

>> Please review the following fix which moves the release of the _object WeakHandle back to the ObjectMonitor dtor. Releasing it earlier as we do today introduces a race which can lead to crashes. Tested running tiers123 in mach5.
>> 
>> Thanks,
>> Patricio
>
> Patricio Chilano Mateo has updated the pull request incrementally with one additional commit since the last revision:
> 
>   inline release in ~ObjectMonitor()

Marked as reviewed by shade (Reviewer).

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

PR Review: https://git.openjdk.org/jdk/pull/16738#pullrequestreview-1740309578


More information about the hotspot-runtime-dev mailing list