]> Cypherpunks.ru repositories - gostls13.git/commit
misc/wasm: free up memory on exit
authorRichard Musiol <mail@richard-musiol.de>
Thu, 5 Jul 2018 13:32:31 +0000 (15:32 +0200)
committerRichard Musiol <neelance@gmail.com>
Wed, 11 Jul 2018 10:22:17 +0000 (10:22 +0000)
commit6fe7b434160c84cbac1157073a795ac6e9f30479
tree61f17851c74281477a838636967cbbb3a21aa881
parent5e70b132c22d10e556b3840626a50ecf1dcad35f
misc/wasm: free up memory on exit

Private fields of the Go class are not used any more after the program
has exited. Delete them to allow JavaScript's garbage collection to
clean up the WebAssembly instance.

Updates #26193.

Change-Id: I349784a49eaad0c22ceedd4f859df97132775537
Reviewed-on: https://go-review.googlesource.com/122296
Run-TryBot: Richard Musiol <neelance@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Paul Jolly <paul@myitcv.org.uk>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
misc/wasm/wasm_exec.js