]> Cypherpunks repositories - gostls13.git/commit
hash/maphash: mark call into runtime hash function as not escaping
authorKeith Randall <khr@golang.org>
Sat, 16 Nov 2019 15:12:53 +0000 (07:12 -0800)
committerKeith Randall <khr@golang.org>
Sat, 16 Nov 2019 20:31:45 +0000 (20:31 +0000)
commit6ba0be16391697bdaab7d8f836b66921977d5474
tree07c3ef892dbce409c21fd4b60652a4d93f9f813d
parentc20b71eb37889e7257453be152a994319c76d451
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>
src/hash/maphash/maphash.go
test/escape_hash_maphash.go [new file with mode: 0644]