Skip to content
Open
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! worker: add flag to control old space size
  • Loading branch information
kvakil committed Jul 26, 2022
commit 61b6baa2e23390fc5239a308f26cd0245cb3c0d9
3 changes: 2 additions & 1 deletion src/node_main_instance.cc
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ NodeMainInstance::NodeMainInstance(const SnapshotData* snapshot_data,
platform->RegisterIsolate(isolate_, event_loop);
SetIsolateCreateParamsForNode(isolate_params_.get());

size_t thread_max_old_space_size = static_cast<size_t>(options->thread_max_old_space_size);
size_t thread_max_old_space_size =
static_cast<size_t>(options->thread_max_old_space_size);
if (thread_max_old_space_size != 0) {
isolate_params_->constraints.set_max_old_generation_size_in_bytes(
thread_max_old_space_size * 1024 * 1024);
Expand Down