[crac] Withdrawn: Update Reference Handling for CRaC
akozlov at openjdk.org
Thu Nov 10 16:00:05 UTC 2022
On Mon, 18 Apr 2022 18:15:13 GMT, Anton Kozlov <akozlov at openjdk.org> wrote:
> This change updates Reference Handling after Alan's comments .
> * The new API is moved to the CRaC-related classes to avoid polluting or changing standard classes. This should make EA builds more attractive.
> * The method for waiting threads now accepts timeout, as turns to be needed by CleanerImpl.beforeCheckpoint().
> * Now reference handling outside of the JDK code is supported, see the supplied test update. The handing does not depend on the first-level reference processing thread's beforeCheckpoint is called first. After that, it was possible to remove the resource and the corresponding REFERENCE_HANDLER priority.
> The methods for waiting threads cannot guarantee that a reference handling is complete for a particular queue and a set of threads, as nothing prevents an another concurrent thread to change the reachability of a random object that will end up in the queue after the method returns. The method is designed to synchronize reference handling and checkpoint. That is, to ensure that objects that are on the way to be enqueued are indeed enqueued and corresponding clean-up is performed, as demonstrated by the test.
>  https://github.com/openjdk/crac/pull/13#issuecomment-1028024855
This pull request has been closed without being integrated.
More information about the crac-dev