[crac] Integrated: Improved open file descriptors tracking
Radim Vansa
duke at openjdk.org
Thu May 11 15:09:21 UTC 2023
On Tue, 31 Jan 2023 10:25:36 GMT, Radim Vansa <duke at openjdk.org> wrote:
> 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.
This pull request has now been integrated.
Changeset: 4b0dc2dc
Author: Radim Vansa <rvansa at azul.com>
Committer: Anton Kozlov <akozlov at openjdk.org>
URL: https://git.openjdk.org/crac/commit/4b0dc2dc9722945579c9772b335a44fa79f1729f
Stats: 999 lines in 33 files changed: 682 ins; 276 del; 41 mod
Improved open file descriptors tracking
Reviewed-by: akozlov
-------------
PR: https://git.openjdk.org/crac/pull/43
More information about the crac-dev
mailing list