• Russ Cox's avatar
    runtime: show m stack during crash on m stack · ab38e2a4
    Russ Cox authored
    The various throwing > 0 finish a change started
    in a previous CL, which sets throwing = -1 to mean
    "don't show the internals". That gets set during the
    "all goroutines are asleep - deadlock!" crash, and it
    should also be set during any other expected crash
    that does not indicate a problem within the runtime.
    
    Most runtime.throw do indicate a problem within the
    runtime, however, so we should be able to enumerate
    the ones that should be silent. The goroutine sleeping
    deadlock is the only one I can think of.
    
    Update #5139
    
    R=golang-dev, iant
    CC=golang-dev
    https://golang.org/cl/13662043
    ab38e2a4
traceback_x86.c 6.83 KB