1
0
mirror of https://github.com/golang/go synced 2024-11-18 06:54:49 -07:00

runtime: remove a redundant nil pointer check.

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>
This commit is contained in:
Aaron Jacobs 2015-10-19 20:52:55 +11:00 committed by Dave Cheney
parent 386fa03609
commit 5d88323fa6

View File

@ -568,9 +568,7 @@ func startpanic_m() {
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 {