Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'src/node_worker.h')
-rw-r--r--src/node_worker.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/node_worker.h b/src/node_worker.h
index f9deaa59b4a..1b9ba322bed 100644
--- a/src/node_worker.h
+++ b/src/node_worker.h
@@ -16,6 +16,7 @@ enum ResourceLimits {
kMaxYoungGenerationSizeMb,
kMaxOldGenerationSizeMb,
kCodeRangeSizeMb,
+ kStackSizeMb,
kTotalResourceLimitCount
};
@@ -95,7 +96,7 @@ class Worker : public AsyncWrap {
void UpdateResourceConstraints(v8::ResourceConstraints* constraints);
// Full size of the thread's stack.
- static constexpr size_t kStackSize = 4 * 1024 * 1024;
+ size_t stack_size_ = 4 * 1024 * 1024;
// Stack buffer size that is not available to the JS engine.
static constexpr size_t kStackBufferSize = 192 * 1024;