diff options
author | Linus Torvalds <torvalds@linux-foundation.org> | 2008-12-10 19:44:37 -0800 |
---|---|---|
committer | Junio C Hamano <gitster@pobox.com> | 2008-12-11 00:09:48 -0800 |
commit | 04d39759373e5de017e7c17ef4b762ac5ad3afcc (patch) | |
tree | 60bdd2419073b9ed60473a873b1d66ff4f8b632d /test-path-utils.c | |
parent | make sure packs to be replaced are closed beforehand (diff) | |
download | tgif-04d39759373e5de017e7c17ef4b762ac5ad3afcc.tar.xz |
fsck: reduce stack footprint
The logic to mark all objects that are reachable from tips of refs were
implemented as a set of recursive functions. In a repository with a deep
enough history, this can easily eat up all the available stack space.
Restructure the code to require less stackspace by using an object array
to keep track of the objects that still need to be processed.
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'test-path-utils.c')
0 files changed, 0 insertions, 0 deletions