File tree Expand file tree Collapse file tree 3 files changed +20
-4
lines changed Expand file tree Collapse file tree 3 files changed +20
-4
lines changed Original file line number Diff line number Diff line change 11# ` node-static `
22
33Highly opinionated x86_64-linux nodejs build, fully statically linked,
4- with pointer compression and mimalloc. Should be fast when it works,
5- but it doesn't work with native addons, so don't use it in your
6- project unless you know what you're doing.
4+ with increased V8 wasm limits, pointer compression and mimalloc.
5+ Should be fast when it works, but it doesn't work with native addons,
6+ so don't use it in your project unless you know what you're doing.
Original file line number Diff line number Diff line change 22
33set -eu
44
5- node_ver=v22.8 .0
5+ node_ver=v22.9 .0
66
77apk add \
88 linux-headers \
@@ -13,6 +13,7 @@ cd "$(mktemp -d)"
1313
1414curl -f -L --retry 5 https://nodejs.org/dist/$node_ver /node-$node_ver .tar.xz | tar xJ --strip-components=1
1515sed -i -e ' /v8_enable_sandbox/d' configure.py
16+ patch -p1 -i /workspace/bump-v8-wasm-limits.diff
1617patch -p1 -i /workspace/use-etc-ssl-certs.patch
1718
1819make -j" $( nproc) " binary \
Original file line number Diff line number Diff line change 1+ diff --git a/deps/v8/src/wasm/wasm-limits.h b/deps/v8/src/wasm/wasm-limits.h
2+ index c2a2fe6a50..56e3acd4e1 100644
3+ --- a/deps/v8/src/wasm/wasm-limits.h
4+ +++ b/deps/v8/src/wasm/wasm-limits.h
5+ @@ -28,8 +28,8 @@ constexpr size_t kSpecMaxMemory64Pages = 262'144; // 16GB
6+ // The limits are agreed upon with other engines for consistency.
7+ constexpr size_t kV8MaxWasmTypes = 1'000'000;
8+ constexpr size_t kV8MaxWasmFunctions = 1'000'000;
9+ - constexpr size_t kV8MaxWasmImports = 100'000;
10+ - constexpr size_t kV8MaxWasmExports = 100'000;
11+ + constexpr size_t kV8MaxWasmImports = 1'000'000;
12+ + constexpr size_t kV8MaxWasmExports = 1'000'000;
13+ constexpr size_t kV8MaxWasmGlobals = 1'000'000;
14+ constexpr size_t kV8MaxWasmTags = 1'000'000;
15+ constexpr size_t kV8MaxWasmExceptionTypes = 1'000'000;
You can’t perform that action at this time.
0 commit comments