8000 core, refactor: update heap limit in options.cpp. · fibjs/fibjs@18a858a · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Commit 18a858a

Browse files
committed
core, refactor: update heap limit in options.cpp.
1 parent 44e6bba commit 18a858a
< 8000 div class="prc-PageLayout-PageLayoutContent-jzDMn">

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fibjs/src/base/options.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,10 +181,10 @@ void options(int32_t& pos, char* argv[])
181181
icu::TimeZone::setDefault(*zone);
182182
}
183183

184-
int64_t sz = uv_get_total_memory() / 1024 / 1024;
184+
size_t sz = uv_get_total_memory() / 1024 / 1024;
185185
sz = sz * 3 / 4;
186186

187-
v8::internal::v8_flags.max_old_space_size = sz;
187+
v8::internal::v8_flags.max_heap_size = sz;
188188
v8::internal::v8_flags.stack_size = stack_size - GUARD_SIZE;
189189
v8::internal::v8_flags.wasm_code_gc = false;
190190
}

0 commit comments

Comments
 (0)
0