[crac] Integrated: Fix ordering of invocation on Resources

Radim Vansa duke at openjdk.org
Wed May 10 15:26:00 UTC 2023


On Fri, 21 Apr 2023 09:01:07 GMT, Radim Vansa <duke at openjdk.org> wrote:

> * keeps the original handling of exceptions: afterRestore is called even if beforeCheckpoint throws
> * allows to register a resource in a context that did not start beforeCheckpoint invocations yet
> * registering resource in previous/running context fails the checkpoint but does not trigger exception immediately
>    * instead this will be one of the recorded exceptions and the resource has a chance to fire next time
> * allowed registration of resources can be invoked from other thread without deadlock; illegal registration can deadlock, though

This pull request has now been integrated.

Changeset: ef2437e7
Author:    Radim Vansa <rvansa at azul.com>
Committer: Anton Kozlov <akozlov at openjdk.org>
URL:       https://git.openjdk.org/crac/commit/ef2437e7aaaabcbb58366eb84efbb7ebe5934c1f
Stats:     885 lines in 12 files changed: 622 ins; 203 del; 60 mod

Fix ordering of invocation on Resources

Reviewed-by: akozlov

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

PR: https://git.openjdk.org/crac/pull/60


More information about the crac-dev mailing list