]> Cypherpunks.ru repositories - gostls13.git/commit
cmd/link: increase reserved space for passing env on wasm
authorRichard Musiol <mail@richard-musiol.de>
Sun, 24 Oct 2021 10:28:18 +0000 (12:28 +0200)
committerRichard Musiol <neelance@gmail.com>
Mon, 25 Oct 2021 20:08:25 +0000 (20:08 +0000)
commit252324e879e32f948d885f787decf8af06f82be9
tree76eea88b483ee567c87b5977eb22ee2c287f95b1
parent8c94aa40e6f5e61e8a570e9d20b7d0d4ad8c382d
cmd/link: increase reserved space for passing env on wasm

On wasm, the wasm_exec.js helper passes the command line arguments and
environment variables via a reserved space in the wasm linear memory.
Increase this reserved space from 4096 to 8192 bytes so more environment
variables can fit into the limit.

Later, after https://golang.org/cl/350737 landed, we can switch to the
WASI interface for getting the arguments and environment. This would
remove the limit entirely.

Fixes #49011

Change-Id: I48a6e952a97d33404ed692c98e9b49c5cd6b269b
Reviewed-on: https://go-review.googlesource.com/c/go/+/358194
Trust: Richard Musiol <neelance@gmail.com>
Run-TryBot: Richard Musiol <neelance@gmail.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
misc/wasm/wasm_exec.js
src/cmd/link/internal/ld/data.go