]> Cypherpunks repositories - gostls13.git/commit
runtime: add _Gdeadextra status
authorMichael Anthony Knyszek <mknyszek@google.com>
Mon, 3 Feb 2025 15:22:37 +0000 (15:22 +0000)
committerMichael Knyszek <mknyszek@google.com>
Mon, 20 Oct 2025 20:32:17 +0000 (13:32 -0700)
commitdf33c170919faca6ea849ee23fb0af6971fddc5b
tree016a6fe8af7d3ad065b18bcc3be22323f4e704fa
parent7503856d4072a748ac5618c6040f84a2f7ddac59
runtime: add _Gdeadextra status

_Gdeadextra is almost the same as _Gdead but for goroutines attached to
extra Ms. The primary difference is that it can be transitioned into a
_Gscan status, unlike _Gdead. (Why not just use _Gdead? For safety,
mostly. There's exactly one case where we're going to want to transition
_Gdead to _Gscan|_Gdead, and it's for extra Ms. It's also a bit weird to
call this state dead when it can still have a syscalling P attached to
it.)

This status is used in a follow-up change that changes entersyscall and
exitsyscall.

Change-Id: I169a4c8617aa3dc329574b829203f56c86b58169
Reviewed-on: https://go-review.googlesource.com/c/go/+/646197
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Michael Pratt <mpratt@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
src/runtime/heapdump.go
src/runtime/mgcmark.go
src/runtime/mprof.go
src/runtime/preempt.go
src/runtime/proc.go
src/runtime/runtime-gdb.py
src/runtime/runtime2.go
src/runtime/synctest.go
src/runtime/traceback.go
src/runtime/tracestatus.go