aboutsummaryrefslogtreecommitdiff
path: root/src/runtime
diff options
context:
space:
mode:
authorWang Deyu <wangdeyu.2021@bytedance.com>2026-02-28 10:28:16 +0800
committerGopher Robot <gobot@golang.org>2026-02-28 06:24:31 -0800
commit011e98af3b254cb78f7765aff5410fd085cf3e81 (patch)
treec93e4db9cfd80b685a3fed2c33ea7e45297940f8 /src/runtime
parentad168c5131c83981daefdb0db8a45d1d3315c388 (diff)
downloadgo-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')
-rw-r--r--src/runtime/malloc_test.go3
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()