go/src/hash
Keith Randall 6ba0be1639 hash/maphash: mark call into runtime hash function as not escaping
This allows maphash.Hash to be allocated on the stack for typical uses.

Fixes #35636

Change-Id: I8366507d26ea717f47a9fb46d3bd69ba799845ac
Reviewed-on: https://go-review.googlesource.com/c/go/+/207444
Run-TryBot: Keith Randall <khr@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
2019-11-16 20:31:45 +00:00
..
adler32 crypto, hash: document marshal/unmarshal implementation 2017-11-15 00:06:24 +00:00
crc32 all: remove nacl (part 3, more amd64p32) 2019-10-10 22:38:38 +00:00
crc64 hash/crc64: use t.Fatalf in TestGolden 2018-10-25 06:32:12 +00:00
fnv hash/fnv: use bits.Mul64 for 128-bit hash 2018-12-10 22:50:48 +00:00
maphash hash/maphash: mark call into runtime hash function as not escaping 2019-11-16 20:31:45 +00:00
example_test.go hash: add marshaling, unmarshaling example 2017-11-04 03:47:34 +00:00
hash.go hash: document that the encoded state may contain input in plaintext 2017-11-13 22:14:58 +00:00
marshal_test.go hash: add MarshalBinary/UnmarshalBinary round trip + golden test for all implementations 2017-12-06 07:45:46 +00:00
test_cases.txt
test_gen.awk