mirror of https://github.com/golang/go.git
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:
parent
386fa03609
commit
5d88323fa6
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Reference in New Issue