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/deephash
Joe Tsai 15835f03b3 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>
(cherry picked from commit 3f1317e3e5)
4 years ago
..
deephash.go util/deephash: remove unnecessary formatting for structs and slices (#2571) 5 years ago
deephash_test.go util/deephash: fix TestArrayAllocs 4 years ago
mapiter.go all: gofmt with Go 1.17 5 years ago
mapiter_future.go all: gofmt with Go 1.17 5 years ago