[crac] RFR: Ensure empty Reference Handler and Cleaners queues

Anton Kozlov akozlov at openjdk.java.net
Mon Jan 31 11:51:52 UTC 2022


At the time of checkpoint, a set of References may need handling. This change ensures no References pending in ReferenceHandler and in Cleaners.

System.gc() is a best effort attempt to make GC to look for References. Default VM flags (-DisableExplicitGC, -ExplicitGCInvokesConcurrent) should not block the call, but additional investigation is needed to make sure GC found all references.

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

Commit messages:
 - Ensure empty Reference Handler and Cleaners queues

Changes: https://git.openjdk.java.net/crac/pull/13/files
 Webrev: https://webrevs.openjdk.java.net/?repo=crac&pr=13&range=00
  Stats: 126 lines in 5 files changed: 124 ins; 0 del; 2 mod
  Patch: https://git.openjdk.java.net/crac/pull/13.diff
  Fetch: git fetch https://git.openjdk.java.net/crac pull/13/head:pull/13

PR: https://git.openjdk.java.net/crac/pull/13


More information about the crac-dev mailing list