Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fixup! doc,worker: document resourceLimits overrides
  • Loading branch information
kvakil committed Jul 27, 2022
commit 61fc60485af3149aa95878ffc3bdddb0e0f34559
13 changes: 6 additions & 7 deletions doc/api/worker_threads.md
Original file line number Diff line number Diff line change
Expand Up @@ -991,14 +991,13 @@ changes:
engine instance. Reaching these limits leads to termination of the `Worker`
instance. These limits only affect the JS engine, and no external data,
including no `ArrayBuffer`s. Even if these limits are set, the process may
still abort if it encounters a global out-of-memory situation. These
limits can be overriden by V8 arguments passed to the main thread. In
particular, [`--max-old-space-size`][] overrides `maxOldGenerationSizeMb`
and [`--max-semi-space-size`][] overrides `maxYoungGenerationSizeMb` for
all created threads.
* `maxOldGenerationSizeMb` {number} The maximum size of the main heap in MB.
still abort if it encounters a global out-of-memory situation.
* `maxOldGenerationSizeMb` {number} The maximum size of the main heap in
MB. If the command-line argument [`--max-old-space-size`][] is set, it
overrides this setting.
* `maxYoungGenerationSizeMb` {number} The maximum size of a heap space for
recently created objects.
recently created objects. If the command-line argument
[`--max-semi-space-size`][] is set, it overrides this setting.
* `codeRangeSizeMb` {number} The size of a pre-allocated memory range
used for generated code.
* `stackSizeMb` {number} The default maximum stack size for the thread.
Expand Down