commit | f84bbd52b0021c401b0b6508e90e913ae0aa241d | [log] [tgz] |
---|---|---|
author | Cherry Zhang <cherryyz@google.com> | Thu Jun 04 15:41:45 2020 -0400 |
committer | Cherry Zhang <cherryyz@google.com> | Wed Jun 17 15:09:07 2020 +0000 |
tree | 72754bdb9e05c46a9f4258bfb80d11394234bce9 | |
parent | dea6d928f6c293631ce93bd3a3bb8b4020188954 [diff] |
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>
Go is an open source programming language that makes it easy to build simple, reliable, and efficient software.
Gopher image by Renee French, licensed under Creative Commons 3.0 Attributions license.
Our canonical Git repository is located at https://go.googlesource.com/go. There is a mirror of the repository at https://github.com/golang/go.
Unless otherwise noted, the Go source files are distributed under the BSD-style license found in the LICENSE file.
Official binary distributions are available at https://golang.org/dl/.
After downloading a binary release, visit https://golang.org/doc/install or load doc/install.html in your web browser for installation instructions.
If a binary distribution is not available for your combination of operating system and architecture, visit https://golang.org/doc/install/source or load doc/install-source.html in your web browser for source installation instructions.
Go is the work of thousands of contributors. We appreciate your help!
To contribute, please read the contribution guidelines: https://golang.org/doc/contribute.html
Note that the Go project uses the issue tracker for bug reports and proposals only. See https://golang.org/wiki/Questions for a list of places to ask questions about the Go language.