]> Cypherpunks repositories - gostls13.git/commit
[dev.typeparams] runtime: undo go'd closure argument workaround
authorCherry Mui <cherryyz@google.com>
Thu, 3 Jun 2021 22:29:05 +0000 (18:29 -0400)
committerCherry Mui <cherryyz@google.com>
Fri, 4 Jun 2021 17:00:32 +0000 (17:00 +0000)
commit3298c749acc32eca0460f52866d169441eb0e076
treeecceb1da69972419db97285f477eaf1fdf5c9cca
parent46beeed0ac4cd409554167c315861eaf8ae68c4a
[dev.typeparams] runtime: undo go'd closure argument workaround

In CL 298669 we added defer/go wrapping, and, as it is not
allowed for closures to escape when compiling runtime, we worked
around it by rewriting go'd closures to argumentless
non-capturing closures, so it is not a real closure and so not
needed to escape.

Previous CL removes the restriction. Now we can undo the
workaround.

Updates #40724.

Change-Id: Ic7bf129da4aee7b7fdb7157414eca943a6a27264
Reviewed-on: https://go-review.googlesource.com/c/go/+/325110
Trust: Cherry Mui <cherryyz@google.com>
Reviewed-by: Than McIntosh <thanm@google.com>
src/runtime/export_test.go
src/runtime/mgc.go
src/runtime/mgcscavenge.go
src/runtime/mgcsweep.go