]> Cypherpunks repositories - gostls13.git/commit
runtime: do not unset the special bit after finalization.
authorRémy Oudompheng <oudomphe@phare.normalesup.org>
Wed, 30 May 2012 06:04:11 +0000 (08:04 +0200)
committerRémy Oudompheng <oudomphe@phare.normalesup.org>
Wed, 30 May 2012 06:04:11 +0000 (08:04 +0200)
commit348087877cc02948d062bc770a4f4d67b2819797
treeb0a57a920cd098fd8f57f8a44720282cbd7a9b50
parent4e0749a47805912a528326e3a63e5f0342b19b59
runtime: do not unset the special bit after finalization.

A block with finalizer might also be profiled. The special bit
is needed to unregister the block from the profile. It will be
unset only when the block is freed.

Fixes #3668.

R=golang-dev, rsc
CC=golang-dev, remy
https://golang.org/cl/6249066
src/pkg/runtime/mfinal.c
src/pkg/runtime/mgc0.c