Skip to content

Commit 5a68eb9

Browse files
mdempskyadg
authored andcommittedOct 22, 2015
runtime: prune some dead variables
Change-Id: I7a1c3079b433c4e30d72fb7d59f9594e0d5efe47 Reviewed-on: https://go-review.googlesource.com/16178 Run-TryBot: Matthew Dempsky <[email protected]> TryBot-Result: Gobot Gobot <[email protected]> Reviewed-by: Andrew Gerrand <[email protected]>
1 parent 29330c1 commit 5a68eb9

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed
 

‎src/runtime/proc.go

-1
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,6 @@ func allgadd(gp *g) {
336336

337337
lock(&allglock)
338338
allgs = append(allgs, gp)
339-
allg = &allgs[0]
340339
allglen = uintptr(len(allgs))
341340
unlock(&allglock)
342341
}

‎src/runtime/runtime2.go

-4
Original file line numberDiff line numberDiff line change
@@ -612,16 +612,12 @@ const (
612612

613613
var (
614614
emptystring string
615-
allg **g
616615
allglen uintptr
617-
lastg *g
618616
allm *m
619617
allp [_MaxGomaxprocs + 1]*p
620618
gomaxprocs int32
621619
panicking uint32
622-
goos *int8
623620
ncpu int32
624-
signote note
625621
forcegc forcegcstate
626622
sched schedt
627623
newprocs int32

0 commit comments

Comments
 (0)
Please sign in to comment.