diff options
| author | Peter Collingbourne <pcc@google.com> | 2014-08-07 09:00:02 -0400 |
|---|---|---|
| committer | Russ Cox <rsc@golang.org> | 2014-08-07 09:00:02 -0400 |
| commit | e03bce158fba5f13dd7f2f0a86a40eb14958300b (patch) | |
| tree | 4cd6d9b5a645be10fe84807e8014ac54d4445d88 /src/pkg/runtime/heapdump.c | |
| parent | 6cee4d3e8f52d4ab5ba2f97ca58f11d5e4c29fd4 (diff) | |
| download | go-e03bce158fba5f13dd7f2f0a86a40eb14958300b.tar.xz | |
cmd/cc, runtime: eliminate use of the unnamed substructure C extension
Eliminating use of this extension makes it easier to port the Go runtime
to other compilers. This CL also disables the extension in cc to prevent
accidental use.
LGTM=rsc, khr
R=rsc, aram, khr, dvyukov
CC=axwalk, golang-codereviews
https://golang.org/cl/106790044
Diffstat (limited to 'src/pkg/runtime/heapdump.c')
| -rw-r--r-- | src/pkg/runtime/heapdump.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/runtime/heapdump.c b/src/pkg/runtime/heapdump.c index 9e968a250e..b002feb1c2 100644 --- a/src/pkg/runtime/heapdump.c +++ b/src/pkg/runtime/heapdump.c @@ -515,7 +515,7 @@ dumproots(void) if(sp->kind != KindSpecialFinalizer) continue; spf = (SpecialFinalizer*)sp; - p = (byte*)((s->start << PageShift) + spf->offset); + p = (byte*)((s->start << PageShift) + spf->special.offset); dumpfinalizer(p, spf->fn, spf->fint, spf->ot); } } @@ -695,7 +695,7 @@ dumpmemprof(void) if(sp->kind != KindSpecialProfile) continue; spp = (SpecialProfile*)sp; - p = (byte*)((s->start << PageShift) + spp->offset); + p = (byte*)((s->start << PageShift) + spp->special.offset); dumpint(TagAllocSample); dumpint((uintptr)p); dumpint((uintptr)spp->b); |
