]> Cypherpunks repositories - gostls13.git/commit
runtime: have ReadMemStats do a nil check before switching stacks
authorKeith Randall <khr@golang.org>
Mon, 3 Jul 2023 20:16:59 +0000 (13:16 -0700)
committerKeith Randall <khr@golang.org>
Tue, 4 Jul 2023 16:54:39 +0000 (16:54 +0000)
commite126572f8a91d42b86242012012d0cad4507dca8
tree4bde9ae2427a987ce1e4419097c68a5141a1ed7c
parente4ed92a355cebc399dc34d33a556f656fa5c7690
runtime: have ReadMemStats do a nil check before switching stacks

This gives the user a better stack trace experience. No need to
expose them to runtime.systemstack and friends.

Fixes #61158

Change-Id: I4f423f82e54b062773067c0ae64622e37cb3948b
Reviewed-on: https://go-review.googlesource.com/c/go/+/507755
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Run-TryBot: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
src/runtime/mstats.go
src/runtime/traceback.go