]> Cypherpunks repositories - gostls13.git/commitdiff
crypto/sha1: mark block as non-escaping
authorRob Pike <r@golang.org>
Tue, 25 Jun 2013 00:48:31 +0000 (17:48 -0700)
committerRob Pike <r@golang.org>
Tue, 25 Jun 2013 00:48:31 +0000 (17:48 -0700)
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

index 3512a58299140546b63c179a61b9037ad3322d2b..4cb157fff6d608809f8c63f5f7e28090df406065 100644 (file)
@@ -6,4 +6,6 @@
 
 package sha1
 
+//go:noescape
+
 func block(dig *digest, p []byte)