]> Cypherpunks repositories - gostls13.git/commit
runtime: harden conditions when runtime panics on crash
authorDmitriy Vyukov <dvyukov@google.com>
Thu, 13 Mar 2014 09:25:59 +0000 (13:25 +0400)
committerDmitriy Vyukov <dvyukov@google.com>
Thu, 13 Mar 2014 09:25:59 +0000 (13:25 +0400)
commit156962872575382697a0487030cd5777312d6d0c
tree8cc2d344a0794664ebec45a29fefdfea1a507a2f
parent5daffee17fdd8c10ead83a87861d99c39f05561d
runtime: harden conditions when runtime panics on crash
This is especially important for SetPanicOnCrash,
but also useful for e.g. nil deref in mallocgc.
Panics on such crashes can't lead to anything useful,
only to deadlocks, hangs and obscure crashes.
This is a copy of broken but already LGTMed
https://golang.org/cl/68540043/

TBR=rsc
R=rsc
CC=golang-codereviews
https://golang.org/cl/75320043
src/pkg/runtime/panic.c
src/pkg/runtime/runtime.h
src/pkg/runtime/signal_386.c
src/pkg/runtime/signal_amd64x.c
src/pkg/runtime/signal_arm.c