1
0
mirror of https://github.com/golang/go synced 2024-10-03 05:21:22 -06:00

runtime: fix typo in gc bug fix

This time for sure.

R=golang-dev, dsymonds
CC=golang-dev
https://golang.org/cl/4437078
This commit is contained in:
Russ Cox 2011-04-28 00:20:37 -04:00
parent b6f0632e93
commit 37b3494026

View File

@ -344,13 +344,12 @@ scanstack(G *gp)
// The goroutine is usually asleep (the world is stopped). // The goroutine is usually asleep (the world is stopped).
sp = gp->sched.sp; sp = gp->sched.sp;
// The exception is that if gp->status == Gsyscall, the goroutine // The exception is that if the goroutine is about to enter or might
// is about to enter or might have just exited a system call, in // have just exited a system call, it may be executing code such
// which case it may be executing code such as schedlock and // as schedlock and may have needed to start a new stack segment.
// may have needed to start a new stack segment.
// Use the stack segment and stack pointer at the time of // Use the stack segment and stack pointer at the time of
// the entersyscall. // the system call instead, since that won't change underfoot.
if(g->gcstack != nil) { if(gp->gcstack != nil) {
stk = (Stktop*)gp->gcstack; stk = (Stktop*)gp->gcstack;
sp = gp->gcsp; sp = gp->gcsp;
guard = gp->gcguard; guard = gp->gcguard;