]> Cypherpunks repositories - gostls13.git/commit
slices: update TestIssue68488 to avoid false positives
authorJorropo <jorropo.pgm@gmail.com>
Sat, 28 Jun 2025 00:20:22 +0000 (02:20 +0200)
committerGopher Robot <gobot@golang.org>
Tue, 1 Jul 2025 15:34:08 +0000 (08:34 -0700)
commitd168ad18e15c4e052260bb8c3446c90ab46fdde0
tree857abb3d7dc38a77558ade235a9dc77aecca2d57
parent27ad1f50135c6de20c2afd593cdd17f47c2388e0
slices: update TestIssue68488 to avoid false positives

Fixes #74387

Even tho we are abusing unsafe.SliceData a bit here it's probably fine;
in case this test fail, it means some memory alias is happening
which is not good for GC purposes.

We don't care about false keep alives for stack locations tho.

Change-Id: I9434bad8c6d9fbc39c738690617dc7cf91d82aef
Reviewed-on: https://go-review.googlesource.com/c/go/+/684755
Reviewed-by: David Chase <drchase@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Keith Randall <khr@golang.org>
Reviewed-by: Keith Randall <khr@google.com>
Auto-Submit: Jorropo <jorropo.pgm@gmail.com>
src/slices/slices_test.go