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:
authorAnna Henningsen <anna@addaleax.net>2020-04-27 04:41:56 +0300
committerAnna Henningsen <anna@addaleax.net>2020-04-29 06:13:42 +0300
commite7b99e027b2fe2fc0834bf2df9daf6d94b27f02b (patch)
treee280ed7486944384816c6a48f0a113c0195c629e /doc/api/worker_threads.md
parentef85bd1908e9550e59dbfa16372b79c1a95ea2a8 (diff)
worker: add stack size resource limit option
Add `stackSizeMb` to the `resourceLimit` option group. Refs: https://github.com/nodejs/node/pull/31593#issuecomment-619633820 PR-URL: https://github.com/nodejs/node/pull/33085 Reviewed-By: Gireesh Punathil <gpunathi@in.ibm.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Diffstat (limited to 'doc/api/worker_threads.md')
-rw-r--r--doc/api/worker_threads.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/api/worker_threads.md b/doc/api/worker_threads.md
index 4b6927bf632..b3f4aca313b 100644
--- a/doc/api/worker_threads.md
+++ b/doc/api/worker_threads.md
@@ -174,6 +174,7 @@ added:
* `maxYoungGenerationSizeMb` {number}
* `maxOldGenerationSizeMb` {number}
* `codeRangeSizeMb` {number}
+ * `stackSizeMb` {number}
Provides the set of JS engine resource constraints inside this Worker thread.
If the `resourceLimits` option was passed to the [`Worker`][] constructor,
@@ -584,6 +585,8 @@ changes:
recently created objects.
* `codeRangeSizeMb` {number} The size of a pre-allocated memory range
used for generated code.
+ * `stackSizeMb` {number} The default maximum stack size for the thread.
+ Small values may lead to unusable Worker instances. **Default:** `4`.
### Event: `'error'`
<!-- YAML
@@ -679,6 +682,7 @@ added:
* `maxYoungGenerationSizeMb` {number}
* `maxOldGenerationSizeMb` {number}
* `codeRangeSizeMb` {number}
+ * `stackSizeMb` {number}
Provides the set of JS engine resource constraints for this Worker thread.
If the `resourceLimits` option was passed to the [`Worker`][] constructor,