Skip to content

Commit 43d6737

Browse files
committed
Use -DINITIAL_MARK_STACK_SIZE
1 parent 8c53715 commit 43d6737

File tree

2 files changed

+7
-17
lines changed

2 files changed

+7
-17
lines changed

packaging/dependencies.nix

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,13 @@ scope: {
5555
enableLargeConfig = true;
5656
}).overrideAttrs
5757
(attrs: {
58-
patches = attrs.patches or [ ] ++ [ ./patches/bdwgc-bigger-mark-stack.patch ];
58+
# Increase the initial mark stack size to avoid stack
59+
# overflows, since these inhibit parallel marking (see
60+
# GC_mark_some()). To check whether the mark stack is too
61+
# small, run Nix with GC_PRINT_STATS=1 and look for messages
62+
# such as `Mark stack overflow`, `No room to copy back mark
63+
# stack`, and `Grew mark stack to ... frames`.
64+
NIX_CFLAGS_COMPILE = "-DINITIAL_MARK_STACK_SIZE=1048576";
5965
});
6066

6167
# TODO Hack until https://github.com/NixOS/nixpkgs/issues/45462 is fixed.

packaging/patches/bdwgc-bigger-mark-stack.patch

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
 (0)