aboutsummaryrefslogtreecommitdiff
path: root/src/os/exec/exec.go
diff options
context:
space:
mode:
authorMichael Anthony Knyszek <mknyszek@google.com>2022-05-10 15:09:12 +0000
committerMichael Knyszek <mknyszek@google.com>2022-05-10 15:43:40 +0000
commit8fdd277fe6ee1770b12650a4bc2bc257e49c8065 (patch)
tree3237ece858a71e3ea4fbaab932ffde177bea5acc /src/os/exec/exec.go
parentdd7d9b773f0c1319955eee0857e07dd411628e00 (diff)
downloadgo-8fdd277fe6ee1770b12650a4bc2bc257e49c8065.tar.xz
runtime: profile finalizer G more carefully in goroutine profile
If SetFinalizer is never called, we might readgstatus on a nil fing variable, resulting in a crash. This change guards code that accesses fing by a nil check. Fixes #52821. Change-Id: I3e8e7004f97f073dc622e801a1d37003ea153a29 Reviewed-on: https://go-review.googlesource.com/c/go/+/405475 Run-TryBot: Michael Knyszek <mknyszek@google.com> Reviewed-by: Bryan Mills <bcmills@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Rhys Hiltner <rhys@justin.tv>
Diffstat (limited to 'src/os/exec/exec.go')
0 files changed, 0 insertions, 0 deletions