Skip to content
Snippets Groups Projects
Forked from Glasgow Haskell Compiler / GHC
941 commits behind, 239 commits ahead of the upstream repository.
  • Cheng Shao's avatar
    d14424e2
    wasm: bump dyld v8 heap size limit · d14424e2
    Cheng Shao authored
    This patch adds `--max-old-space-size=8192` to wasm dyld shebang
    arguments to bump V8 heap size limit. The default limit
    (`heap_size_limit` returned by `v8.getHeapStatistics()`) is
    dynamically determined and a bit too low under certain workloads, and
    V8 would waste too much CPU time to garbage collect old generation
    heap more aggressively. Bumping the limit to 8G doesn't imply dyld
    would really take that much memory at run-time, but it lessens V8 heap
    stress significantly.
    
    (cherry picked from commit 14c5143899d164c7ac1213d918b4819684538c4b)
    d14424e2
    History
    wasm: bump dyld v8 heap size limit
    Cheng Shao authored
    This patch adds `--max-old-space-size=8192` to wasm dyld shebang
    arguments to bump V8 heap size limit. The default limit
    (`heap_size_limit` returned by `v8.getHeapStatistics()`) is
    dynamically determined and a bit too low under certain workloads, and
    V8 would waste too much CPU time to garbage collect old generation
    heap more aggressively. Bumping the limit to 8G doesn't imply dyld
    would really take that much memory at run-time, but it lessens V8 heap
    stress significantly.
    
    (cherry picked from commit 14c5143899d164c7ac1213d918b4819684538c4b)
dyld.mjs 28.88 KiB