]> Cypherpunks repositories - gostls13.git/commit
stack overflow debugging and fix.
authorRuss Cox <rsc@golang.org>
Mon, 12 Oct 2009 17:26:38 +0000 (10:26 -0700)
committerRuss Cox <rsc@golang.org>
Mon, 12 Oct 2009 17:26:38 +0000 (10:26 -0700)
commitadd89dd1bae04b641944d082467375f1dc787cd2
treeda51e7592c895d32c8acf0bed84cdd5cfa1dbc01
parentfd76b4f3851c70a083991d8e86d7432d9157737b
stack overflow debugging and fix.

  * in 6l, -K already meant check for stack underflow.
    add -KK to mean double-check stack overflows
    even in nosplit functions.

  * comment out print locks; they deadlock too easily
     but are still useful to put back for special occasions.

  * let runcgo assembly switch to scheduler stack
    without involving scheduler directly.  because runcgo
    gets called from matchmg, it is too hard to keep it
    from being called on other stacks.

R=r
DELTA=94  (65 added, 18 deleted, 11 changed)
OCL=35591
CL=35604
src/cmd/6l/pass.c
src/pkg/runtime/386/asm.s
src/pkg/runtime/amd64/asm.s
src/pkg/runtime/cgocall.c
src/pkg/runtime/print.c
src/pkg/runtime/proc.c
src/pkg/runtime/runtime.h