[crac] RFR: Improved open file descriptors tracking [v5]
Radim Vansa
duke at openjdk.org
Thu Mar 23 15:06:24 UTC 2023
> Tracks `java.io.FileDescriptor` instances as CRaC resource; before checkpoint these are reported and if not allow-listed (e.g. as opened as standard descriptors) an exception is thrown. Further investigation can use system property `jdk.crac.collect-fd-stacktraces=true` to record origin of those file descriptors.
> File descriptors claimed in Java code are passed to native; native code checks all open file descriptors and reports error if there's an unexpected FD that is not included in the list passed previously.
Radim Vansa has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 19 commits:
- Delete LazyProps test (debug logging now configured differently)
- Do not allow registering resources with lower or equal priority during beforeCheckpoint
- Address review comments
- Merge remote-tracking branch 'origin/crac' into newfd
- Use descriptor access rather than extending API
- 8272472: StackGuardPages test doesn't build with glibc 2.34
Backport-of: f77a1a156f3da9068d012d9227c7ee0fee58f571
- Empty commit to trigger GHA
- Drop native FDs tracking
- Avoid claiming invalid FileDescriptor
- Whitelist RandomAccessFile opening classpath files
This is a workaround for some frameworks opening classpath files in
a non-standard way.
- ... and 9 more: https://git.openjdk.org/crac/compare/2c83b9c3...d6757344
-------------
Changes: https://git.openjdk.org/crac/pull/43/files
Webrev: https://webrevs.openjdk.org/?repo=crac&pr=43&range=04
Stats: 763 lines in 29 files changed: 389 ins; 293 del; 81 mod
Patch: https://git.openjdk.org/crac/pull/43.diff
Fetch: git fetch https://git.openjdk.org/crac.git pull/43/head:pull/43
PR: https://git.openjdk.org/crac/pull/43
More information about the crac-dev
mailing list