]> Cypherpunks repositories - gostls13.git/commit
runtime: fix finalizer test on amd64
authorRuss Cox <rsc@golang.org>
Wed, 2 Oct 2013 16:30:49 +0000 (12:30 -0400)
committerRuss Cox <rsc@golang.org>
Wed, 2 Oct 2013 16:30:49 +0000 (12:30 -0400)
commit5f853d7d9407db1aaa7c7d0dfbf3dbd9d5c19093
tree04bd400df674c50f80d2e7709c35a76a029732a7
parent8d6bc666fb86a45f2f426009b05fc07d3fb1cefc
runtime: fix finalizer test on amd64

Not scanning the stack by frames means we are reintroducing
a few false positives into the collection. Run the finalizer registration
in its own goroutine so that stack is guaranteed to be out of
consideration in a later collection.

This is working around a regression from yesterday's tip, but
it's not a regression from Go 1.1.

R=golang-dev
TBR=golang-dev
CC=golang-dev
https://golang.org/cl/14290043
src/pkg/runtime/mfinal_test.go