]> Cypherpunks repositories - gostls13.git/commit
runtime: do not use heap arena hints on wasm
authorRichard Musiol <mail@richard-musiol.de>
Sun, 28 Apr 2019 10:16:44 +0000 (12:16 +0200)
committerRichard Musiol <neelance@gmail.com>
Tue, 30 Apr 2019 08:25:33 +0000 (08:25 +0000)
commitc2d9eea1f1d5bc4c49e3a97384ffcb40b7dd52bf
tree19ededd9eab06f8f4279b0b3efd6da85e9acc3d5
parentdcb84828a6b1d7d4d9186bc6d752cc147e255162
runtime: do not use heap arena hints on wasm

The address space of WebAssembly's linear memory is contiguous, so
requesting specific addresses is not supported. Do not use heap arena
hints so we do not have unused memory ranges.

This fixes go1 benchmarks on wasm which ran out of memory since
https://golang.org/cl/170950.

Change-Id: I70115b18dbe43abe16dd5f57996343d97bf94760
Reviewed-on: https://go-review.googlesource.com/c/go/+/174203
Run-TryBot: Richard Musiol <neelance@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/runtime/mem_js.go