]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.1] runtime: fix heap corruption during GC
authorAndrew Gerrand <adg@golang.org>
Wed, 5 Jun 2013 01:12:46 +0000 (11:12 +1000)
committerAndrew Gerrand <adg@golang.org>
Wed, 5 Jun 2013 01:12:46 +0000 (11:12 +1000)
commitd72c550f1c7e13c323f4507b57d741ed00f0b0cd
treee56bab2a2dd510519c8f301854d522815313dad4
parent371a3ab28a91d142ea4100fe8f86a26fe300e1b7
[release-branch.go1.1] runtime: fix heap corruption during GC

««« CL 9831043 / e84e7204b01b
runtime: fix heap corruption during GC
The 'n' variable is used during rescan initiation in GC_END case,
but it's overwritten with chan capacity in GC_CHAN case.
As the result rescan is done with the wrong object size.
Fixes #5554.

R=golang-dev, khr
CC=golang-dev
https://golang.org/cl/9831043
»»»

R=dvyukov, khr, dave
CC=golang-dev
https://golang.org/cl/10028044
src/pkg/runtime/gc_test.go
src/pkg/runtime/mgc0.c