aboutsummaryrefslogtreecommitdiff
path: root/src/encoding/json/decode.go
diff options
context:
space:
mode:
authorJoe Tsai <joetsai@digital-static.net>2015-11-19 17:41:57 -0800
committerRuss Cox <rsc@golang.org>2015-11-25 15:01:10 +0000
commit64cc5fd0b3ad20c6e7e8b875317629df8207d9ba (patch)
tree8776f5546db4e409aa479c6a342a873aed73babd /src/encoding/json/decode.go
parente5956bca418bb8528509665ae753eada2024b9e3 (diff)
downloadgo-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/json/decode.go')
0 files changed, 0 insertions, 0 deletions