]> Cypherpunks repositories - gostls13.git/commit
runtime: clear procid in unminit
authorMichael Pratt <mpratt@google.com>
Wed, 6 Sep 2023 14:31:32 +0000 (10:31 -0400)
committerGopher Robot <gobot@golang.org>
Wed, 6 Sep 2023 18:36:02 +0000 (18:36 +0000)
commit4be921d888d3a68c51e38d4c615a4438c7b2cb30
treeee3736b814158ab71203732d7d76817377718063
parentf25ca8b33d7c40f03faf17b74682ee894d4112af
runtime: clear procid in unminit

Extra Ms can move between system threads. needm will reinitialize procid
(via minit) on the new thread, but leaving a stale procid behind after
dropm can be misleading if printing the M early in needm for debugging.

Change-Id: I668891971a0baeab31170d1e40a97126416e7379
Reviewed-on: https://go-review.googlesource.com/c/go/+/526118
Reviewed-by: Cherry Mui <cherryyz@google.com>
Auto-Submit: Michael Pratt <mpratt@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/runtime/os3_solaris.go
src/runtime/os_aix.go
src/runtime/os_darwin.go
src/runtime/os_dragonfly.go
src/runtime/os_freebsd.go
src/runtime/os_linux.go
src/runtime/os_netbsd.go
src/runtime/os_openbsd.go
src/runtime/os_windows.go