summaryrefslogtreecommitdiff
path: root/node.gyp
diff options
context:
space:
mode:
authorTobias Nießen <tniessen@tnie.de>2022-07-02 18:38:11 +0200
committerGitHub <noreply@github.com>2022-07-02 17:38:11 +0100
commit71691e53d601a4cf3eab3b33cebe4cc9f50c8470 (patch)
tree3d67b234e47a1a64959dc51ddd3037c2712dc528 /node.gyp
parentc753f27a3d4ff1ca7d8a1167d6fc655685310a09 (diff)
downloadnode-new-71691e53d601a4cf3eab3b33cebe4cc9f50c8470.tar.gz
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 <info@bnoordhuis.nl> Reviewed-By: Jiawen Geng <technicalcute@gmail.com>
Diffstat (limited to 'node.gyp')
-rw-r--r--node.gyp6
1 files changed, 6 insertions, 0 deletions
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,
},
},