diff options
| author | Dmitriy Vyukov <dvyukov@google.com> | 2014-02-27 20:27:55 +0400 |
|---|---|---|
| committer | Dmitriy Vyukov <dvyukov@google.com> | 2014-02-27 20:27:55 +0400 |
| commit | 7e0dac08c7f8948423135d05c085f076cce9ec6d (patch) | |
| tree | ce70018689f5393bb90501a0400f6a97167b1367 /src/pkg/runtime/panic.c | |
| parent | 0b0e209ffb937f283cdca8b51efadc78cc93f8a1 (diff) | |
| download | go-7e0dac08c7f8948423135d05c085f076cce9ec6d.tar.xz | |
runtime: fix and improve comments
LGTM=r
R=golang-codereviews, r
CC=golang-codereviews, iant, khr, rsc
https://golang.org/cl/67460043
Diffstat (limited to 'src/pkg/runtime/panic.c')
| -rw-r--r-- | src/pkg/runtime/panic.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/pkg/runtime/panic.c b/src/pkg/runtime/panic.c index 6e5be3e677..ffb4031ec9 100644 --- a/src/pkg/runtime/panic.c +++ b/src/pkg/runtime/panic.c @@ -226,7 +226,7 @@ runtime·panic(Eface e) break; // take defer off list in case of recursive panic g->defer = d->link; - g->ispanic = true; // rock for newstack, where reflect.newstackcall ends up + g->ispanic = true; // rock for runtime·newstack, where runtime·newstackcall ends up argp = d->argp; pc = d->pc; runtime·newstackcall(d->fn, (byte*)d->args, d->siz); @@ -246,7 +246,8 @@ runtime·panic(Eface e) // ran out of deferred calls - old-school panic now runtime·startpanic(); printpanics(g->panic); - runtime·dopanic(0); + runtime·dopanic(0); // should not return + runtime·exit(1); // not reached } // Unwind the stack after a deferred function calls recover |
