]> Cypherpunks repositories - gostls13.git/commit
runtime: make goroutine for wasm async events short-lived
authorRichard Musiol <mail@richard-musiol.de>
Thu, 10 Oct 2019 20:38:26 +0000 (22:38 +0200)
committerRichard Musiol <neelance@gmail.com>
Fri, 11 Oct 2019 18:09:33 +0000 (18:09 +0000)
commit2686e7494845dae877e0efb4ff786c672b2cd2ef
treee425983c821567c7c12332293f3664e04b9d6cb1
parent426bfbe9a375aebf5df2fbc5eb340fccc0466382
runtime: make goroutine for wasm async events short-lived

An extra goroutine is necessary to handle asynchronous events on wasm.
However, we do not want this goroutine to exist all the time.
This change makes it short-lived, so it ends after the asynchronous
event was handled.

Fixes #34768

Change-Id: I24626ff0af9d803a01ebe33fbb584d04d2059a44
Reviewed-on: https://go-review.googlesource.com/c/go/+/200497
Run-TryBot: Richard Musiol <neelance@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/cmd/internal/objabi/funcid.go
src/runtime/lock_js.go
src/runtime/symtab.go
src/runtime/traceback.go