From: Matthew Dempsky Date: Thu, 22 Oct 2015 03:09:08 +0000 (-0700) Subject: runtime: prune some dead variables X-Git-Tag: go1.6beta1~748 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=5a68eb9f25a2a6290800278df972e04a4085cee3;p=gostls13.git runtime: prune some dead variables Change-Id: I7a1c3079b433c4e30d72fb7d59f9594e0d5efe47 Reviewed-on: https://go-review.googlesource.com/16178 Run-TryBot: Matthew Dempsky TryBot-Result: Gobot Gobot Reviewed-by: Andrew Gerrand --- diff --git a/src/runtime/proc.go b/src/runtime/proc.go index e4ca9407f6..714421f5f3 100644 --- a/src/runtime/proc.go +++ b/src/runtime/proc.go @@ -336,7 +336,6 @@ func allgadd(gp *g) { lock(&allglock) allgs = append(allgs, gp) - allg = &allgs[0] allglen = uintptr(len(allgs)) unlock(&allglock) } diff --git a/src/runtime/runtime2.go b/src/runtime/runtime2.go index 7d6c441ef5..6b61cd62fa 100644 --- a/src/runtime/runtime2.go +++ b/src/runtime/runtime2.go @@ -612,16 +612,12 @@ const ( var ( emptystring string - allg **g allglen uintptr - lastg *g allm *m allp [_MaxGomaxprocs + 1]*p gomaxprocs int32 panicking uint32 - goos *int8 ncpu int32 - signote note forcegc forcegcstate sched schedt newprocs int32