Skip to content

Commit

Permalink
fixup! worker: add flag to control old space size
Browse files Browse the repository at this point in the history
  • Loading branch information
kvakil committed Jul 26, 2022
1 parent f1fdb84 commit 61b6baa
Showing 1 changed file with 2 additions and 1 deletion.
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

0 comments on commit 61b6baa

Please sign in to comment.