Commit 5d88323f authored by Aaron Jacobs's avatar Aaron Jacobs Committed by Dave Cheney

runtime: remove a redundant nil pointer check.

It appears this was made possible by commit 89f185fe; before that, g was
not dereferenced above.

Change-Id: I70bc571d924b36351392fd4c13d681e938cfb573
Reviewed-on: https://go-review.googlesource.com/16033Reviewed-by: default avatarAndrew Gerrand <adg@golang.org>
parent 386fa036
...@@ -568,9 +568,7 @@ func startpanic_m() { ...@@ -568,9 +568,7 @@ func startpanic_m() {
switch _g_.m.dying { switch _g_.m.dying {
case 0: case 0:
_g_.m.dying = 1 _g_.m.dying = 1
if _g_ != nil { _g_.writebuf = nil
_g_.writebuf = nil
}
xadd(&panicking, 1) xadd(&panicking, 1)
lock(&paniclk) lock(&paniclk)
if debug.schedtrace > 0 || debug.scheddetail > 0 { if debug.schedtrace > 0 || debug.scheddetail > 0 {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment