]> Cypherpunks repositories - gostls13.git/commit
runtime: do not omit stack trace of goroutine that handles async events
authorRichard Musiol <mail@richard-musiol.de>
Sun, 6 Oct 2019 20:39:08 +0000 (22:39 +0200)
committerRichard Musiol <neelance@gmail.com>
Mon, 7 Oct 2019 18:13:27 +0000 (18:13 +0000)
commit1c8e6077f67ea33b752ebf93483517b03ad9393f
tree5ca4e368df0ce24133fe73fbf8fb15f4c69e42d0
parent30521d5126c47c9db0dd4cafc3de5bcf3c6348dd
runtime: do not omit stack trace of goroutine that handles async events

On wasm there is a special goroutine that handles asynchronous events.
Blocking this goroutine often causes a deadlock. However, the stack
trace of this goroutine was omitted when printing the deadlock error.

This change adds an exception so the goroutine is not considered as
an internal system goroutine and the stack trace gets printed, which
helps with debugging the deadlock.

Updates #32764

Change-Id: Icc8f5ba3ca5a485d557b7bdd76bf2f1ffb92eb3e
Reviewed-on: https://go-review.googlesource.com/c/go/+/199537
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