• Russ Cox's avatar
    runtime: reduce frame size for runtime.cgocallback_gofunc · dba623b1
    Russ Cox authored
    Tying preemption to stack splits means that we have to able to
    complete the call to exitsyscall (inside cgocallbackg at least for now)
    without any stack split checks, meaning that the whole sequence
    has to work within 128 bytes of stack, unless we increase the size
    of the red zone. This CL frees up 24 bytes along that critical path
    on amd64. (The 32-bit systems have plenty of space because all
    their words are smaller.)
    
    R=dvyukov
    CC=golang-dev
    https://golang.org/cl/11676043
    dba623b1
asm_arm.s 13 KB