diff options
author | Richard Musiol <mail@richard-musiol.de> | 2019-10-10 22:38:26 +0200 |
---|---|---|
committer | Richard Musiol <neelance@gmail.com> | 2019-10-11 18:09:33 +0000 |
commit | 2686e7494845dae877e0efb4ff786c672b2cd2ef (patch) | |
tree | e425983c821567c7c12332293f3664e04b9d6cb1 /src/runtime/symtab.go | |
parent | 426bfbe9a375aebf5df2fbc5eb340fccc0466382 (diff) | |
download | go-2686e7494845dae877e0efb4ff786c672b2cd2ef.tar.gz go-2686e7494845dae877e0efb4ff786c672b2cd2ef.zip |
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>
Diffstat (limited to 'src/runtime/symtab.go')
-rw-r--r-- | src/runtime/symtab.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/symtab.go b/src/runtime/symtab.go index 8296a8590d..df6e02f62a 100644 --- a/src/runtime/symtab.go +++ b/src/runtime/symtab.go @@ -253,7 +253,7 @@ const ( funcID_debugCallV1 funcID_gopanic funcID_panicwrap - funcID_handleAsyncEvents + funcID_handleAsyncEvent funcID_wrapper // any autogenerated code (hash/eq algorithms, method wrappers, etc.) ) |