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

Aleksey Shipilev shade at openjdk.org
Mon Nov 20 16:51:22 UTC 2023


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

> > How much of this is a revert of [6402004](https://github.com/openjdk/jdk/commit/6402004852ccc993bb6e879c49fb71e2afdcdfbe)? Should we revert back to that state?
> 
> It's pretty much a revert of that. Now only the deflater thread can call this code so I removed the extra branch in the delete loop.

Then I believe a cleaner way to do this is to make a clean backout of [JDK-8256302](https://bugs.openjdk.org/browse/JDK-8256302), or am I missing something?

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

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


More information about the hotspot-runtime-dev mailing list