test: skip TestScanAllocIssue77573 with asan mode

In ASAN mode, extra memory allocations alter the object size and impact the scansize computation. Skip this test when ASAN is enabled.

Fixes #77857.
Fixes #77858.
Fixes #77859.

Change-Id: I21027ff20c411a0fda7a50446b2202871baa2262
Reviewed-on: https://go-review.googlesource.com/c/go/+/750140
Reviewed-by: Keith Randall <khr@golang.org>
Auto-Submit: Keith Randall <khr@golang.org>
Reviewed-by: David Chase <drchase@google.com>
Reviewed-by: Keith Randall <khr@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
This commit is contained in:
Wang Deyu
2026-02-28 10:28:16 +08:00
committed by Gopher Robot
parent ad168c5131
commit 011e98af3b

View File

@@ -854,6 +854,9 @@ func TestMkmalloc(t *testing.T) {
}
func TestScanAllocIssue77573(t *testing.T) {
if asan.Enabled {
t.Skip("extra allocations with -asan causes this to fail")
}
verifyScanAlloc := func(t *testing.T, f func(), expectSize uintptr) {
runtime.Acquirem()
defer runtime.Releasem()