]> Cypherpunks repositories - gostls13.git/commit
runtime: clean up scanning of Gs
authorKeith Randall <khr@golang.org>
Mon, 28 Apr 2014 16:47:09 +0000 (12:47 -0400)
committerKeith Randall <khr@golang.org>
Mon, 28 Apr 2014 16:47:09 +0000 (12:47 -0400)
commit29d1b211fdece82b3c4ccdb549ac394e71132643
tree9d5f7700ef6123ce0fe963c0cad4be13aa925f92
parent573cfe95615faac43b9fc0841f13b74640584305
runtime: clean up scanning of Gs

Use a real type for Gs instead of scanning them conservatively.
Zero the schedlink pointer when it is dead.

Update #7820

LGTM=rsc
R=rsc, dvyukov
CC=golang-codereviews
https://golang.org/cl/89360043
src/pkg/runtime/malloc.h
src/pkg/runtime/mgc0.go
src/pkg/runtime/proc.c