]> Cypherpunks repositories - gostls13.git/commit
runtime: fix finalizer iterator
authorKeith Randall <khr@golang.org>
Tue, 9 Dec 2014 04:04:56 +0000 (20:04 -0800)
committerKeith Randall <khr@golang.org>
Wed, 10 Dec 2014 16:33:26 +0000 (16:33 +0000)
commitb796cbc40657e0891a43bffab0ffb92ce656d8f1
tree66d700763b5f05903e9edace719b55bb5ffb0349
parent508a22d5bcec2508779fbc4e3e4c745ffe8ea961
runtime: fix finalizer iterator

It could only handle one finalizer before it raised an out-of-bounds error.

Fixes issue #9172

Change-Id: Ibb4d0c8aff2d78a1396e248c7129a631176ab427
Reviewed-on: https://go-review.googlesource.com/1201
Reviewed-by: Russ Cox <rsc@golang.org>
src/runtime/debug/heapdump_test.go
src/runtime/malloc2.go
src/runtime/mgc.go