]> Cypherpunks repositories - gostls13.git/commit
runtime: fix GC scanning of slices
authorDmitriy Vyukov <dvyukov@google.com>
Wed, 15 May 2013 19:50:32 +0000 (23:50 +0400)
committerDmitriy Vyukov <dvyukov@google.com>
Wed, 15 May 2013 19:50:32 +0000 (23:50 +0400)
commitc6293d2106515b1150b4765fa61b12cea76442ae
tree743485f5132980243cce5dd6b31ee90ad489f6fc
parent9e643ac20ef515e1dafac8f0ee700304c8fbe42b
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
src/pkg/runtime/gc_test.go
src/pkg/runtime/mgc0.c