From 011e98af3b254cb78f7765aff5410fd085cf3e81 Mon Sep 17 00:00:00 2001 From: Wang Deyu Date: Sat, 28 Feb 2026 10:28:16 +0800 Subject: 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 Auto-Submit: Keith Randall Reviewed-by: David Chase Reviewed-by: Keith Randall LUCI-TryBot-Result: Go LUCI --- src/runtime/malloc_test.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/runtime/malloc_test.go') diff --git a/src/runtime/malloc_test.go b/src/runtime/malloc_test.go index 22ed23c7de..1cf3d90004 100644 --- a/src/runtime/malloc_test.go +++ b/src/runtime/malloc_test.go @@ -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() -- cgit v1.3-5-g9baa