Skip to content

Commit

Permalink
Bump the stack size for ASAN builds.
Browse files Browse the repository at this point in the history
After #17057, building the system image seems to take significantly more stack space,
resulting in a StackOverflowError.
  • Loading branch information
maleadt committed Feb 24, 2017
1 parent b0ca50b commit 221b01a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ static void jl_find_stack_bottom(void)

// When using the sanitizers, increase stack size because they bloat
// stack usage
const rlim_t kStackSize = 32 * 1024 * 1024; // 32MB stack
const rlim_t kStackSize = 64 * 1024 * 1024; // 64MiB stack
int result;

result = getrlimit(RLIMIT_STACK, &rl);
Expand Down

0 comments on commit 221b01a

Please sign in to comment.