]> Cypherpunks repositories - gostls13.git/commit
runtime: clean up escaping in tests
authorAustin Clements <austin@google.com>
Mon, 25 Apr 2022 21:21:58 +0000 (17:21 -0400)
committerGopher Robot <gobot@golang.org>
Thu, 28 Apr 2022 18:28:44 +0000 (18:28 +0000)
commit123e27170aac5b26c38e6bf9866e16a38aed1696
treebc6f5c6957d983f3151626c5ae1548558cf2d13d
parentc15d0a93c772c03fb028f0473016629a70a4427e
runtime: clean up escaping in tests

There are several tests in the runtime that need to force various
things to escape to the heap. This CL centralizes this functionality
into runtime.Escape, defined in export_test.

Change-Id: I2de2519661603ad46c372877a9c93efef8e7a857
Reviewed-on: https://go-review.googlesource.com/c/go/+/402178
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Run-TryBot: Austin Clements <austin@google.com>
Auto-Submit: Austin Clements <austin@google.com>
src/runtime/export_test.go
src/runtime/gc_test.go
src/runtime/gcinfo_test.go
src/runtime/malloc_test.go
src/runtime/map_test.go