Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bucket: allow to allocate key on stack in Put()
As per `go build -gcflags -m ./... 2>&1`: Old behaviour: ``` ./bucket.go:148:31: leaking param: key ./bucket.go:192:42: leaking param: key ./bucket.go:271:22: leaking param: key ``` Now: ``` ./bucket.go:148:31: key does not escape ./bucket.go:192:42: key does not escape ./bucket.go:271:22: key does not escape ``` Signed-off-by: Evgenii Stratonikov <[email protected]> (cherry picked from commit 71a59ca) Signed-off-by: Wei Fu <[email protected]>
- Loading branch information