]> Cypherpunks repositories - gostls13.git/commit
runtime: don't panic in castogscanstatus
authorMichael Anthony Knyszek <mknyszek@google.com>
Mon, 3 Nov 2025 22:29:36 +0000 (22:29 +0000)
committerMichael Knyszek <mknyszek@google.com>
Mon, 3 Nov 2025 22:50:47 +0000 (14:50 -0800)
commitb5353fd90a3824f4ff903e0d89cf4e63714f61d1
treef4b675e7c5dc97eda84f88b54220b44129c99654
parent43491f8d52f13df3c70277f81c85809818969d77
runtime: don't panic in castogscanstatus

The panic calls gopanic which may have write barriers, but
castogscanstatus is called from //go:nowritebarrier contexts.

The panic is dead code anyway, and appears immediately before a call to
'throw'.

Change-Id: I4a8e296b71bf002295a3aa1db4f723c305ed939a
Reviewed-on: https://go-review.googlesource.com/c/go/+/717406
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
src/runtime/proc.go