From 5a68eb9f25a2a6290800278df972e04a4085cee3 Mon Sep 17 00:00:00 2001 From: Matthew Dempsky Date: Wed, 21 Oct 2015 20:09:08 -0700 Subject: [PATCH] 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 --- src/runtime/proc.go | 1 - src/runtime/runtime2.go | 4 ---- 2 files changed, 5 deletions(-) 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 -- 2.50.0