[crac] RFR: Fix ordering of invocation on Resources [v11]

Radim Vansa duke at openjdk.org
Wed May 10 11:08:05 UTC 2023


> * 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

Radim Vansa has updated the pull request incrementally with three additional commits since the last revision:

 - Fix build
 - Minified the set of changes
 - Fixup

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

Changes:
  - all: https://git.openjdk.org/crac/pull/60/files
  - new: https://git.openjdk.org/crac/pull/60/files/286d820d..4adad664

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=crac&pr=60&range=10
 - incr: https://webrevs.openjdk.org/?repo=crac&pr=60&range=09-10

  Stats: 268 lines in 15 files changed: 62 ins; 178 del; 28 mod
  Patch: https://git.openjdk.org/crac/pull/60.diff
  Fetch: git fetch https://git.openjdk.org/crac.git pull/60/head:pull/60

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


More information about the crac-dev mailing list