diff options
| author | Michael Anthony Knyszek <mknyszek@google.com> | 2022-05-10 15:09:12 +0000 |
|---|---|---|
| committer | Michael Knyszek <mknyszek@google.com> | 2022-05-10 15:43:40 +0000 |
| commit | 8fdd277fe6ee1770b12650a4bc2bc257e49c8065 (patch) | |
| tree | 3237ece858a71e3ea4fbaab932ffde177bea5acc /src/os/exec | |
| parent | dd7d9b773f0c1319955eee0857e07dd411628e00 (diff) | |
| download | go-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')
0 files changed, 0 insertions, 0 deletions
