diff options
author | Matthew Dempsky <mdempsky@google.com> | 2015-11-12 15:35:50 -0800 |
---|---|---|
committer | Matthew Dempsky <mdempsky@google.com> | 2015-11-13 01:53:00 +0000 |
commit | 7bb38f6e470995d54a8bac3a67f997efc1f60c69 (patch) | |
tree | d32a4180796a993b868a24fda54a99a9326d7d84 /src/runtime/runtime.go | |
parent | 940d41e386d92bda0f4fb39541df89ed424a012d (diff) | |
download | go-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.go | 2 |
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)) |