tailscale/util
Joe Tsai 3f1317e3e5
util/deephash: fix TestArrayAllocs
Unfortunately this test fails on certain architectures.
The problem comes down to inconsistencies in the Go escape analysis
where specific variables are marked as escaping on certain architectures.
The variables escaping to the heap are unfortunately in crypto/sha256,
which makes it impossible to fixthis locally in deephash.

For now, fix the test by compensating for the allocations that
occur from calling sha256.digest.Sum.

See golang/go#48055

Fixes #2727

Signed-off-by: Joe Tsai <joetsai@digital-static.net>
2021-08-30 10:47:21 -07:00
..
cibuild wgengine/magicsock: increase legacy ping timeout again 2021-02-10 13:50:18 -08:00
cmpver util/cmpver: move into OSS from corp repo. 2021-04-23 20:55:45 -07:00
deephash util/deephash: fix TestArrayAllocs 2021-08-30 10:47:21 -07:00
dnsname util/dnsname: make ToFQDN take exactly 0 or 1 allocs for everything. 2021-05-31 21:13:50 -07:00
endian all: gofmt with Go 1.17 2021-08-05 15:54:00 -07:00
groupmember fix: typo spelling grammar 2021-08-24 07:55:04 -07:00
jsonutil util/jsonutil: new package 2020-11-19 13:58:35 -08:00
lineread util/lineread: add docs to Reader 2020-11-19 12:14:58 -08:00
osshare all: gofmt with Go 1.17 2021-08-05 15:54:00 -07:00
pidowner all: gofmt with Go 1.17 2021-08-05 15:54:00 -07:00
racebuild all: gofmt with Go 1.17 2021-08-05 15:54:00 -07:00
systemd all: gofmt with Go 1.17 2021-08-05 15:54:00 -07:00
uniq util/uniq: add new package 2020-10-02 11:00:56 -07:00
winutil all: gofmt with Go 1.17 2021-08-05 15:54:00 -07:00