]> Cypherpunks.ru repositories - gostls13.git/commit
runtime: check that defer/go frames are empty
authorAustin Clements <austin@google.com>
Tue, 30 Mar 2021 18:45:00 +0000 (14:45 -0400)
committerAustin Clements <austin@google.com>
Tue, 30 Mar 2021 21:20:51 +0000 (21:20 +0000)
commite0ce0af6ef5232352852fa027fe51fa3fd01198e
tree13c52cb0f5d8469cf4744e94e15888e9c46ffe75
parent1318fb4a32371311688c6b868c3041f0501b6aeb
runtime: check that defer/go frames are empty

With GOEXPERIMENT=regabidefer, these frames should always be empty.
Check that.

For #40724.

Change-Id: Id8e418a9e06b4f94543cb16b868a7e10e013c2d9
Reviewed-on: https://go-review.googlesource.com/c/go/+/306009
Trust: Austin Clements <austin@google.com>
Run-TryBot: Austin Clements <austin@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Than McIntosh <thanm@google.com>
Reviewed-by: Cherry Zhang <cherryyz@google.com>
src/runtime/panic.go
src/runtime/proc.go
src/runtime/regabidefer_off.go [new file with mode: 0644]
src/runtime/regabidefer_on.go [new file with mode: 0644]