diff options
Diffstat (limited to 'src/runtime/export_test.go')
| -rw-r--r-- | src/runtime/export_test.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/runtime/export_test.go b/src/runtime/export_test.go index 70ab24e853..ebac7fa997 100644 --- a/src/runtime/export_test.go +++ b/src/runtime/export_test.go @@ -229,6 +229,9 @@ func SetEnvs(e []string) { envs = e } // For benchmarking. func BenchSetType(n int, x any) { + // Escape x to ensure it is allocated on the heap, as we are + // working on the heap bits here. + Escape(x) e := *efaceOf(&x) t := e._type var size uintptr |
