From 793bb6cce763c8181a25190e41206b1786e849bd Mon Sep 17 00:00:00 2001 From: Rob Pike Date: Mon, 24 Jun 2013 17:48:31 -0700 Subject: [PATCH] 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 --- src/pkg/crypto/sha1/sha1block_decl.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pkg/crypto/sha1/sha1block_decl.go b/src/pkg/crypto/sha1/sha1block_decl.go index 3512a582991..4cb157fff6d 100644 --- a/src/pkg/crypto/sha1/sha1block_decl.go +++ b/src/pkg/crypto/sha1/sha1block_decl.go @@ -6,4 +6,6 @@ package sha1 +//go:noescape + func block(dig *digest, p []byte)