]> Cypherpunks repositories - gostls13.git/commit
[release-branch.go1.1] runtime: fix GC scanning of slices
authorAndrew Gerrand <adg@golang.org>
Wed, 5 Jun 2013 00:20:34 +0000 (10:20 +1000)
committerAndrew Gerrand <adg@golang.org>
Wed, 5 Jun 2013 00:20:34 +0000 (10:20 +1000)
commit03290b55e9270f3ecd56a8050692a0e8841e8944
tree5d7990d332874da10a552b5e909e112e9f58c5be
parent5f1cf3440237d0ed68e918b51faeba1c42d1ec8a
[release-branch.go1.1] runtime: fix GC scanning of slices

««« CL 9372044 / 1abed5873071
runtime: fix GC scanning of slices
If a slice points to an array embedded in a struct,
the whole struct can be incorrectly scanned as the slice buffer.
Fixes #5443.

R=cshapiro, iant, r, cshapiro, minux.ma
CC=bradfitz, gobot, golang-dev
https://golang.org/cl/9372044
»»»

R=cshapiro, iant
CC=golang-dev
https://golang.org/cl/10027043
src/pkg/runtime/gc_test.go
src/pkg/runtime/mgc0.c