From 71691e53d601a4cf3eab3b33cebe4cc9f50c8470 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tobias=20Nie=C3=9Fen?= Date: Sat, 2 Jul 2022 18:38:11 +0200 Subject: build,test: increase stack size limit on Windows Fixes: https://github.com/nodejs/node/issues/43630 PR-URL: https://github.com/nodejs/node/pull/43632 Reviewed-By: Ben Noordhuis Reviewed-By: Jiawen Geng --- node.gyp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'node.gyp') diff --git a/node.gyp b/node.gyp index d063a64080..0f5e71da53 100644 --- a/node.gyp +++ b/node.gyp @@ -172,6 +172,12 @@ 'RandomizedBaseAddress': 2, # enable ASLR 'DataExecutionPrevention': 2, # enable DEP 'AllowIsolation': 'true', + # By default, the MSVC linker only reserves 1 MiB of stack memory for + # each thread, whereas other platforms typically allow much larger + # stack memory sections. We raise the limit to make it more consistent + # across platforms and to support the few use cases that require large + # amounts of stack memory, without having to modify the node binary. + 'StackReserveSize': 0x800000, }, }, -- cgit v1.2.1