diff options
| author | Ian Lance Taylor <iant@golang.org> | 2019-11-01 17:53:53 -0700 |
|---|---|---|
| committer | Ian Lance Taylor <iant@golang.org> | 2019-11-02 05:52:33 +0000 |
| commit | 8de0bb77ebc3408a586ad96a3c9ae9c231fd15a3 (patch) | |
| tree | 7551dae1f5b66dbfaf3ae19466838d9cc0653476 /src/runtime/proc.go | |
| parent | 971ec8728e27a3a9e0b0b26413e2b994c828f86d (diff) | |
| download | go-8de0bb77ebc3408a586ad96a3c9ae9c231fd15a3.tar.xz | |
runtime: clear preemptStop in dropm
Updates #10958
Updates #24543
Fixes #35294
Change-Id: I60f024d08451565df6d9751dab9832b50cbf637a
Reviewed-on: https://go-review.googlesource.com/c/go/+/204957
Run-TryBot: Ian Lance Taylor <iant@golang.org>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
Diffstat (limited to 'src/runtime/proc.go')
| -rw-r--r-- | src/runtime/proc.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/runtime/proc.go b/src/runtime/proc.go index f9a22ca5e3..6740169cf8 100644 --- a/src/runtime/proc.go +++ b/src/runtime/proc.go @@ -1625,6 +1625,7 @@ func dropm() { // Return mp.curg to dead state. casgstatus(mp.curg, _Gsyscall, _Gdead) + mp.curg.preemptStop = false atomic.Xadd(&sched.ngsys, +1) // Block signals before unminit. |
