diff options
Diffstat (limited to 'libgo/runtime/heapdump.c')
-rw-r--r-- | libgo/runtime/heapdump.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libgo/runtime/heapdump.c b/libgo/runtime/heapdump.c index 80d2b7bf8500..c050541db9d8 100644 --- a/libgo/runtime/heapdump.c +++ b/libgo/runtime/heapdump.c @@ -311,8 +311,8 @@ dumpgs(void) uint32 i; // goroutines & stacks - for(i = 0; i < runtime_allglen; i++) { - gp = runtime_allg[i]; + for(i = 0; i < runtime_getallglen(); i++) { + gp = runtime_getallg(i); switch(gp->atomicstatus){ default: runtime_printf("unexpected G.status %d\n", gp->atomicstatus); |