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 1
1
# ` node-static `
2
2
3
3
Highly 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 2
2
3
3
set -eu
4
4
5
- node_ver=v22.8 .0
5
+ node_ver=v22.9 .0
6
6
7
7
apk add \
8
8
linux-headers \
@@ -13,6 +13,7 @@ cd "$(mktemp -d)"
13
13
14
14
curl -f -L --retry 5 https://nodejs.org/dist/$node_ver /node-$node_ver .tar.xz | tar xJ --strip-components=1
15
15
sed -i -e ' /v8_enable_sandbox/d' configure.py
16
+ patch -p1 -i /workspace/bump-v8-wasm-limits.diff
16
17
patch -p1 -i /workspace/use-etc-ssl-certs.patch
17
18
18
19
make -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