It appears this was made possible by commit
89f185f; before that, g was
not dereferenced above.
Change-Id: I70bc571d924b36351392fd4c13d681e938cfb573
Reviewed-on: https://go-review.googlesource.com/16033
Reviewed-by: Andrew Gerrand <adg@golang.org>
switch _g_.m.dying {
case 0:
_g_.m.dying = 1
- if _g_ != nil {
- _g_.writebuf = nil
- }
+ _g_.writebuf = nil
xadd(&panicking, 1)
lock(&paniclk)
if debug.schedtrace > 0 || debug.scheddetail > 0 {