1
0
mirror of https://github.com/golang/go synced 2024-11-23 01:40:03 -07:00

crypto/sha1: mark block as non-escaping

The compiler still gets the escape analysis wrong, but the annotation here is correct.

R=golang-dev, dave, bradfitz
CC=golang-dev
https://golang.org/cl/10514046
This commit is contained in:
Rob Pike 2013-06-24 17:48:31 -07:00
parent 3b76d70e11
commit 793bb6cce7

View File

@ -6,4 +6,6 @@
package sha1 package sha1
//go:noescape
func block(dig *digest, p []byte) func block(dig *digest, p []byte)