• Russ Cox's avatar
    runtime: run sighandler on g0 stack on windows · 201cfe4a
    Russ Cox authored
    The sighander has been run at the bottom of the
    currently executing goroutine stack, but it's in C,
    and we don't want C on our ordinary goroutine stacks.
    Worse, it does a lot of stuff, and it might need more
    stack space. There is scary code in traceback_windows.go
    that talks about stack splits during sighandler.
    Moving sighandler to g0 will eliminate the possibility
    of stack splits and such, and then we can delete
    traceback_windows.go entirely. Win win.
    
    On the builder, all.bat passes with GOARCH=amd64
    and all.bat gets most of the way with GOARCH=386
    except for a DLL-loading test that I think is unrelated.
    
    Fixes windows build.
    
    TBR=brainman, iant
    CC=golang-codereviews
    https://golang.org/cl/140380043
    201cfe4a
sys_windows_386.s 8.41 KB