]> Cypherpunks repositories - gostls13.git/commit
test: add a test for wasm memory usage
authorCherry Mui <cherryyz@google.com>
Fri, 25 Oct 2024 21:30:26 +0000 (17:30 -0400)
committerCherry Mui <cherryyz@google.com>
Mon, 28 Oct 2024 13:27:58 +0000 (13:27 +0000)
commitbbdc65bb3825dfde90603d1b26a2034e8963356c
treeb45ce978bb161bfa5b584eb79ea526d364271910
parent889abb17e125bb0f5d8de61bb80ef15fbe2a130d
test: add a test for wasm memory usage

Test that a small Wasm program uses 8 MB of linear memory. This
reflects the current allocator. We test an exact value, but if the
allocator changes, we can update or relax this.

Updates #69018.

Change-Id: Ifc0bb420af008bd30cde4745b3efde3ce091b683
Reviewed-on: https://go-review.googlesource.com/c/go/+/622378
Reviewed-by: Michael Knyszek <mknyszek@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
test/wasmmemsize.dir/asm_wasm.s [new file with mode: 0644]
test/wasmmemsize.dir/main.go [new file with mode: 0644]
test/wasmmemsize.go [new file with mode: 0644]