[crac] RFR: 8357984: [CRaC] Improve new properties installation code
Timofei Pushkin
tpushkin at openjdk.org
Wed May 28 15:52:52 UTC 2025
Rewrites the code which installs new properties on restore to make it more concise by using direct array iteration and lambdas.
Note that initially the lambdas were removed from this code in #75 because they triggered a resource registration in a blocking context during C/R which led to a deadlock. But as I understand #73 made it possible to use lambdas during C/R.
I also noted that there are no tests for new properties so I added one.
-------------
Commit messages:
- Improve new properties installation code
Changes: https://git.openjdk.org/crac/pull/233/files
Webrev: https://webrevs.openjdk.org/?repo=crac&pr=233&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8357984
Stats: 73 lines in 2 files changed: 51 ins; 14 del; 8 mod
Patch: https://git.openjdk.org/crac/pull/233.diff
Fetch: git fetch https://git.openjdk.org/crac.git pull/233/head:pull/233
PR: https://git.openjdk.org/crac/pull/233
More information about the crac-dev
mailing list