diff options
| author | Wang Deyu <wangdeyu.2021@bytedance.com> | 2026-02-28 10:28:16 +0800 |
|---|---|---|
| committer | Gopher Robot <gobot@golang.org> | 2026-02-28 06:24:31 -0800 |
| commit | 011e98af3b254cb78f7765aff5410fd085cf3e81 (patch) | |
| tree | c93e4db9cfd80b685a3fed2c33ea7e45297940f8 /src/runtime/malloc_test.go | |
| parent | ad168c5131c83981daefdb0db8a45d1d3315c388 (diff) | |
| download | go-011e98af3b254cb78f7765aff5410fd085cf3e81.tar.xz | |
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>
Diffstat (limited to 'src/runtime/malloc_test.go')
| -rw-r--r-- | src/runtime/malloc_test.go | 3 |
1 files changed, 3 insertions, 0 deletions
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() |
