Skip to content

Commit f439880

Browse files
authored
Add wasm64_gb test config (#19957)
This test configuration sets GLOBAL_BASE to 4gb meaning that all memory addresses used by emscripten will be larger then 4gb
1 parent b3c0304 commit f439880

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.circleci/config.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -606,6 +606,7 @@ jobs:
606606
title: "wasm64"
607607
test_targets: "
608608
wasm64
609+
wasm64_4gb.test_hello_world
609610
wasm64l.test_bigswitch
610611
other.test_memory64_proxies
611612
other.test_failing_growth_wasm64"

test/test_core.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9800,6 +9800,13 @@ def setUp(self):
98009800
settings={'MEMORY64': 1}, require_wasm64=True, require_node=True)
98019801
wasm64_v8 = make_run('wasm64_v8', emcc_args=['-Wno-experimental', '--profiling-funcs'],
98029802
settings={'MEMORY64': 1}, require_wasm64=True, require_v8=True)
9803+
# Run the wasm64 tests with all memory offsets > 4gb. Be careful running this test
9804+
# suite with any kind of parallelism.
9805+
wasm64_4gb = make_run('wasm64_4gb', emcc_args=['-Wno-experimental', '--profiling-funcs'],
9806+
settings={'MEMORY64': 1, 'INITIAL_MEMORY': '4200mb',
9807+
'MAXIMUM_MEMORY': '4200mb', # TODO(sbc): should not be needed
9808+
'GLOBAL_BASE': '4gb'},
9809+
require_wasm64=True)
98039810
# MEMORY64=2, or "lowered"
98049811
wasm64l = make_run('wasm64l', emcc_args=['-O1', '-Wno-experimental', '--profiling-funcs'],
98059812
settings={'MEMORY64': 2},

0 commit comments

Comments
 (0)