aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/runtime.go
diff options
context:
space:
mode:
authorMatthew Dempsky <mdempsky@google.com>2015-11-12 15:35:50 -0800
committerMatthew Dempsky <mdempsky@google.com>2015-11-13 01:53:00 +0000
commit7bb38f6e470995d54a8bac3a67f997efc1f60c69 (patch)
treed32a4180796a993b868a24fda54a99a9326d7d84 /src/runtime/runtime.go
parent940d41e386d92bda0f4fb39541df89ed424a012d (diff)
downloadgo-7bb38f6e470995d54a8bac3a67f997efc1f60c69.tar.gz
go-7bb38f6e470995d54a8bac3a67f997efc1f60c69.zip
runtime: replace tls0 with m0.tls
We're allocating TLS storage for m0 anyway, so might as well use it. Change-Id: I7dc20bbea5320c8ab8a367f18a9540706751e771 Reviewed-on: https://go-review.googlesource.com/16890 Run-TryBot: Matthew Dempsky <mdempsky@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Michael Hudson-Doyle <michael.hudson@canonical.com> Reviewed-by: Ian Lance Taylor <iant@golang.org>
Diffstat (limited to 'src/runtime/runtime.go')
-rw-r--r--src/runtime/runtime.go2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/runtime/runtime.go b/src/runtime/runtime.go
index 0bbe42739d..265edf28b3 100644
--- a/src/runtime/runtime.go
+++ b/src/runtime/runtime.go
@@ -19,8 +19,6 @@ var ticks struct {
val uint64
}
-var tls0 [8]uintptr // available storage for m0's TLS; not necessarily used; opaque to GC
-
// Note: Called by runtime/pprof in addition to runtime code.
func tickspersecond() int64 {
r := int64(atomic.Load64(&ticks.val))