diff options
| author | Michael Pratt <mpratt@google.com> | 2023-09-06 10:31:32 -0400 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2023-09-06 18:36:02 +0000 |
| commit | 4be921d888d3a68c51e38d4c615a4438c7b2cb30 (patch) | |
| tree | ee3736b814158ab71203732d7d76817377718063 /src/runtime/os_aix.go | |
| parent | f25ca8b33d7c40f03faf17b74682ee894d4112af (diff) | |
| download | go-4be921d888d3a68c51e38d4c615a4438c7b2cb30.tar.xz | |
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>
Diffstat (limited to 'src/runtime/os_aix.go')
| -rw-r--r-- | src/runtime/os_aix.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/runtime/os_aix.go b/src/runtime/os_aix.go index ce2d719d0b..b26922c908 100644 --- a/src/runtime/os_aix.go +++ b/src/runtime/os_aix.go @@ -183,6 +183,7 @@ func minit() { func unminit() { unminitSignals() + getg().m.procid = 0 } // Called from exitm, but not from drop, to undo the effect of thread-owned |
