]> Cypherpunks repositories - gostls13.git/commit
runtime: disable preemption during deferreturn
authorRuss Cox <rsc@golang.org>
Thu, 18 Jul 2013 16:26:47 +0000 (12:26 -0400)
committerRuss Cox <rsc@golang.org>
Thu, 18 Jul 2013 16:26:47 +0000 (12:26 -0400)
commitef12bbfc9ddbb168fcd2ab0ad0bd364e40a1ab7f
treee27bce91a05d14e669fac7203d0258ef1f64cd07
parent8166b2da192919679cd4583c4edb34becbe36e8c
runtime: disable preemption during deferreturn

Deferreturn is synthesizing a new call frame.
It must not be interrupted between copying the args there
and fixing up the program counter, or else the stack will
be in an inconsistent state, one that will confuse the
garbage collector.

R=golang-dev, dvyukov
CC=golang-dev
https://golang.org/cl/11522043
src/pkg/runtime/panic.c