]> Cypherpunks.ru repositories - gostls13.git/commit
[dev.typeparams] runtime: simplify defer record allocation
authorCherry Mui <cherryyz@google.com>
Tue, 8 Jun 2021 22:45:18 +0000 (18:45 -0400)
committerCherry Mui <cherryyz@google.com>
Fri, 11 Jun 2021 18:33:07 +0000 (18:33 +0000)
commite0e9fb8affbe37c2ff73b9afb60f726e747f428d
tree6a3fa8b8e487eab8ac3434bb21e7174d22c2266f
parent4468e1cfb94ed07fea5514dce740180fd3a6d20f
[dev.typeparams] runtime: simplify defer record allocation

Now that deferred functions are always argumentless and defer
records are no longer with arguments, defer record can be fixed
size (just the _defer struct). This allows us to simplify the
allocation of defer records, specifically, remove the defer
classes and the pools of different sized defers.

Change-Id: Icc4b16afc23b38262ca9dd1f7369ad40874cf701
Reviewed-on: https://go-review.googlesource.com/c/go/+/326062
Trust: Cherry Mui <cherryyz@google.com>
Run-TryBot: Cherry Mui <cherryyz@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
src/cmd/compile/internal/test/inl_test.go
src/runtime/malloc.go
src/runtime/mgc.go
src/runtime/panic.go
src/runtime/proc.go
src/runtime/runtime2.go