]> Cypherpunks repositories - gostls13.git/commit
cmd/compile: mark block control instruction unsafe in "all unsafe" functions
authorCherry Zhang <cherryyz@google.com>
Thu, 4 Jun 2020 19:41:45 +0000 (15:41 -0400)
committerCherry Zhang <cherryyz@google.com>
Wed, 17 Jun 2020 15:09:07 +0000 (15:09 +0000)
commitf84bbd52b0021c401b0b6508e90e913ae0aa241d
tree72754bdb9e05c46a9f4258bfb80d11394234bce9
parentdea6d928f6c293631ce93bd3a3bb8b4020188954
cmd/compile: mark block control instruction unsafe in "all unsafe" functions

Currently, for runtime functions and nosplit functions, it is
considered "all unsafe", meaning that the entire function body is
unsafe points. In the past, we didn't mark CALLs in such
functions unsafe, which is fixed in CL 230541. We also didn't
mark block control instructions (for mostly-empty blocks) unsafe.
This CL fixes it.

May fix #36110.

Change-Id: I3be8fdcef2b294e5367b31eb1c1b5e79966565fa
Reviewed-on: https://go-review.googlesource.com/c/go/+/236597
Reviewed-by: Austin Clements <austin@google.com>
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
src/cmd/compile/internal/gc/plive.go
src/cmd/compile/internal/gc/ssa.go