You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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>
3 years ago
..
cibuild wgengine/magicsock: increase legacy ping timeout again 3 years ago
cmpver util/cmpver: move into OSS from corp repo. 3 years ago
deephash util/deephash: fix TestArrayAllocs 3 years ago
dnsname util/dnsname: make ToFQDN take exactly 0 or 1 allocs for everything. 3 years ago
endian all: gofmt with Go 1.17 3 years ago
groupmember fix: typo spelling grammar 3 years ago
jsonutil util/jsonutil: new package 4 years ago
lineread util/lineread: add docs to Reader 4 years ago
osshare all: gofmt with Go 1.17 3 years ago
pidowner all: gofmt with Go 1.17 3 years ago
racebuild all: gofmt with Go 1.17 3 years ago
systemd all: gofmt with Go 1.17 3 years ago
uniq util/uniq: add new package 4 years ago
winutil all: gofmt with Go 1.17 3 years ago