[crac] Integrated: List open FDs through reading /proc/self/fd
Radim Vansa
duke at openjdk.org
Fri May 26 09:35:28 UTC 2023
On Fri, 12 May 2023 07:36:33 GMT, Radim Vansa <duke at openjdk.org> wrote:
> Previously the code was iterating through all possible FD values, up to highest allowed FD number, and required allocation of possibly huge array. Reading /proc/self/fd into a compact array is both more memory efficient and does not require excessive syscalls.
This pull request has now been integrated.
Changeset: ab3c5123
Author: Radim Vansa <rvansa at azul.com>
Committer: Anton Kozlov <akozlov at openjdk.org>
URL: https://git.openjdk.org/crac/commit/ab3c51235038c92f06668c227d8f720d85c0de82
Stats: 102 lines in 1 file changed: 27 ins; 23 del; 52 mod
List open FDs through reading /proc/self/fd
Reviewed-by: akozlov
-------------
PR: https://git.openjdk.org/crac/pull/67
More information about the crac-dev
mailing list