]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: prune some dead variables
authorMatthew Dempsky <mdempsky@google.com>
Thu, 22 Oct 2015 03:09:08 +0000 (20:09 -0700)
committerAndrew Gerrand <adg@golang.org>
Thu, 22 Oct 2015 03:56:19 +0000 (03:56 +0000)
Change-Id: I7a1c3079b433c4e30d72fb7d59f9594e0d5efe47
Reviewed-on: https://go-review.googlesource.com/16178
Run-TryBot: Matthew Dempsky <mdempsky@google.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Andrew Gerrand <adg@golang.org>
src/runtime/proc.go
src/runtime/runtime2.go

index e4ca9407f663e44784339321d5eac9b0d2a63055..714421f5f327ecaa56cd819f813a8c3c8ea1fbeb 100644 (file)
@@ -336,7 +336,6 @@ func allgadd(gp *g) {
 
        lock(&allglock)
        allgs = append(allgs, gp)
-       allg = &allgs[0]
        allglen = uintptr(len(allgs))
        unlock(&allglock)
 }
index 7d6c441ef570017cc1b52156e8606f75307ef987..6b61cd62fa1ea799832f10014a3cb86be32cf01b 100644 (file)
@@ -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