]> Cypherpunks repositories - gostls13.git/commit
runtime: add wasm support for timers on P's
authorIan Lance Taylor <iant@golang.org>
Thu, 11 Apr 2019 00:18:22 +0000 (17:18 -0700)
committerIan Lance Taylor <iant@golang.org>
Mon, 21 Oct 2019 21:43:41 +0000 (21:43 +0000)
commit10e7bc994f47a71472c49f84ab782fdfe44bf22e
tree8fb31abeb0a149b339d10134e7f6ac6c230a4635
parent7c3060e92377a6833fa1c1e4d8e1dc996244af38
runtime: add wasm support for timers on P's

When we put timers on P's, the wasm code will not be able to rely on
the timer goroutine. Use the beforeIdle hook to schedule a wakeup.

Updates #6239
Updates #27707

Change-Id: Idf6309944778b8c3d7178f5d09431940843ea233
Reviewed-on: https://go-review.googlesource.com/c/go/+/171827
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Emmanuel Odeke <emm.odeke@gmail.com>
src/runtime/lock_futex.go
src/runtime/lock_js.go
src/runtime/lock_sema.go
src/runtime/proc.go