aboutsummaryrefslogtreecommitdiff
path: root/src/cmd
diff options
context:
space:
mode:
authorAchille Roussel <achille.roussel@gmail.com>2023-03-20 22:16:21 +0000
committerGopher Robot <gobot@golang.org>2023-03-21 02:45:06 +0000
commitdac514ea370d9a5e5129614c58082fe1905f6dcb (patch)
tree3e13ce47878121d0e5d21725e2d3991b76664540 /src/cmd
parent6a914ee26f5954a4c561c853cc7d3f24e545477a (diff)
downloadgo-dac514ea370d9a5e5129614c58082fe1905f6dcb.tar.xz
runtime: reuse freed memory blocks on wasm
When compiling Go programs to WebAssembly, the memory allocation strategy was neither releasing memory to the OS nor reusing blocks freed by calls to runtime.sysFreeOS. This CL unifies the plan9 and wasm memory management strategy since both platforms use a linear memory space and do not have a mechanism for returning memory blocks to the OS. Fixes #59061 Change-Id: I282ba93c0fe1a0961a31c0825b2a7e0478b8713d GitHub-Last-Rev: 1c485be4fb798679fde7db148392de558a6fa97c GitHub-Pull-Request: golang/go#59065 Reviewed-on: https://go-review.googlesource.com/c/go/+/476717 Reviewed-by: Julien Fabre <ju.pryz@gmail.com> TryBot-Result: Gopher Robot <gobot@golang.org> Auto-Submit: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com> Reviewed-by: Evan Phoenix <evan@phx.io> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Reviewed-by: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com> Run-TryBot: Johan Brandhorst-Satzkorn <johan.brandhorst@gmail.com> Reviewed-by: Cherry Mui <cherryyz@google.com>
Diffstat (limited to 'src/cmd')
0 files changed, 0 insertions, 0 deletions