diff options
| author | Keith Randall <khr@golang.org> | 2014-04-28 12:47:09 -0400 |
|---|---|---|
| committer | Keith Randall <khr@golang.org> | 2014-04-28 12:47:09 -0400 |
| commit | 29d1b211fdece82b3c4ccdb549ac394e71132643 (patch) | |
| tree | 9d5f7700ef6123ce0fe963c0cad4be13aa925f92 /src/pkg/runtime/malloc.h | |
| parent | 573cfe95615faac43b9fc0841f13b74640584305 (diff) | |
| download | go-29d1b211fdece82b3c4ccdb549ac394e71132643.tar.xz | |
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
Diffstat (limited to 'src/pkg/runtime/malloc.h')
| -rw-r--r-- | src/pkg/runtime/malloc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/pkg/runtime/malloc.h b/src/pkg/runtime/malloc.h index 62e1f8f56e..dbea7ad135 100644 --- a/src/pkg/runtime/malloc.h +++ b/src/pkg/runtime/malloc.h @@ -631,6 +631,7 @@ BitVector runtime·stackmapdata(StackMap *stackmap, int32 n); // defined in mgc0.go void runtime·gc_m_ptr(Eface*); +void runtime·gc_g_ptr(Eface*); void runtime·gc_itab_ptr(Eface*); void runtime·memorydump(void); |
