RFR: 8305903: Deflate monitors of dead objects before they become unreachable
Roman Kennke
rkennke at openjdk.org
Tue May 2 10:14:18 UTC 2023
On Tue, 2 May 2023 10:00:33 GMT, David Holmes <dholmes at openjdk.org> wrote:
> So how/when is the monitor actually deleted in such a case?
ObjectSynchronizer::deflate_monitor_list() calls OM::deflate_monitor(). When the OM's object is unreachable, the update of the header is skipped, and the monitor owner set to DEFLATER_MARKER (otherwise the object header will *also* be updated to the original mark). When the concurrent deflation gets to actually deflating phase (after a handshake) it will pick up the OM from the OM list and see that it's marked for deflation and deallocate it.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/13721#issuecomment-1531216962
More information about the hotspot-dev
mailing list