• Russ Cox's avatar
    runtime: use gp->sched.sp for stack overflow check · f0d73fbc
    Russ Cox authored
    On x86 it is a few words lower on the stack than m->morebuf.sp
    so it is a more precise check. Enabling the check requires recording
    a valid gp->sched in reflect.call too. This is a good thing in general,
    since it will make stack traces during reflect.call work better, and it
    may be useful for preemption too.
    
    R=dvyukov
    CC=golang-dev
    https://golang.org/cl/10709043
    f0d73fbc
asm_amd64.s 24.1 KB