diff options
| author | Joe Tsai <joetsai@digital-static.net> | 2015-11-19 17:41:57 -0800 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2015-11-25 15:01:10 +0000 |
| commit | 64cc5fd0b3ad20c6e7e8b875317629df8207d9ba (patch) | |
| tree | 8776f5546db4e409aa479c6a342a873aed73babd /src/encoding/gob/encode.go | |
| parent | e5956bca418bb8528509665ae753eada2024b9e3 (diff) | |
| download | go-64cc5fd0b3ad20c6e7e8b875317629df8207d9ba.tar.xz | |
hash/crc32: add noescape tags to assembly functions
CRC-32 computation is stateless and the p slice does not get stored
anywhere. Thus, we mark the assembly functions as noescape so that
it doesn't believe that p leaks in:
func Update(crc uint32, tab *Table, p []byte) uint32
Before:
./crc32.go:153: leaking param: p
After:
./crc32.go:153: Update p does not escape
Change-Id: I52ba35b6cc544fff724327140e0c27898431d1dc
Reviewed-on: https://go-review.googlesource.com/17069
Reviewed-by: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/encoding/gob/encode.go')
0 files changed, 0 insertions, 0 deletions
