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

David Holmes dholmes at openjdk.org
Tue Nov 21 11:09:05 UTC 2023


On Mon, 20 Nov 2023 17:34:43 GMT, Patricio Chilano Mateo <pchilanomate at openjdk.org> wrote:

> Lgtm.
> 
> Could potentially remove the `if (_object.is_null())` checks in `ObjectMonitor::object` and `ObjectMonitor::object_peek`. Should never take those branches.

@xmas92 is your comment/suggestion now invalidated by the issue we discovered with JNI monitor locking and rclaimed objects?

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

PR Comment: https://git.openjdk.org/jdk/pull/16738#issuecomment-1820704009


More information about the hotspot-runtime-dev mailing list