aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/internal/objabi/funcid.go
diff options
context:
space:
mode:
authorRichard Musiol <mail@richard-musiol.de>2019-10-10 22:38:26 +0200
committerRichard Musiol <neelance@gmail.com>2019-10-11 18:09:33 +0000
commit2686e7494845dae877e0efb4ff786c672b2cd2ef (patch)
treee425983c821567c7c12332293f3664e04b9d6cb1 /src/cmd/internal/objabi/funcid.go
parent426bfbe9a375aebf5df2fbc5eb340fccc0466382 (diff)
downloadgo-2686e7494845dae877e0efb4ff786c672b2cd2ef.tar.xz
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/cmd/internal/objabi/funcid.go')
-rw-r--r--src/cmd/internal/objabi/funcid.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/cmd/internal/objabi/funcid.go b/src/cmd/internal/objabi/funcid.go
index fe54eba663..c13c3cb458 100644
--- a/src/cmd/internal/objabi/funcid.go
+++ b/src/cmd/internal/objabi/funcid.go
@@ -37,7 +37,7 @@ const (
FuncID_debugCallV1
FuncID_gopanic
FuncID_panicwrap
- FuncID_handleAsyncEvents
+ FuncID_handleAsyncEvent
FuncID_wrapper // any autogenerated code (hash/eq algorithms, method wrappers, etc.)
)
@@ -83,8 +83,8 @@ func GetFuncID(name, file string) FuncID {
return FuncID_gopanic
case "runtime.panicwrap":
return FuncID_panicwrap
- case "runtime.handleAsyncEvents":
- return FuncID_handleAsyncEvents
+ case "runtime.handleAsyncEvent":
+ return FuncID_handleAsyncEvent
}
if file == "<autogenerated>" {
return FuncID_wrapper