Skip to content

Commit aa4b897

Browse files
committed
v22.9.0
1 parent 3ebb32b commit aa4b897

File tree

3 files changed

+20
-4
lines changed

3 files changed

+20
-4
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# `node-static`
22

33
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.

build.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
set -eu
44

5-
node_ver=v22.8.0
5+
node_ver=v22.9.0
66

77
apk add \
88
linux-headers \
@@ -13,6 +13,7 @@ cd "$(mktemp -d)"
1313

1414
curl -f -L --retry 5 https://nodejs.org/dist/$node_ver/node-$node_ver.tar.xz | tar xJ --strip-components=1
1515
sed -i -e '/v8_enable_sandbox/d' configure.py
16+
patch -p1 -i /workspace/bump-v8-wasm-limits.diff
1617
patch -p1 -i /workspace/use-etc-ssl-certs.patch
1718

1819
make -j"$(nproc)" binary \

bump-v8-wasm-limits.diff

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
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;

0 commit comments

Comments
 (0)