From 7bb38f6e470995d54a8bac3a67f997efc1f60c69 Mon Sep 17 00:00:00 2001 From: Matthew Dempsky Date: Thu, 12 Nov 2015 15:35:50 -0800 Subject: 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 TryBot-Result: Gobot Gobot Reviewed-by: Michael Hudson-Doyle Reviewed-by: Ian Lance Taylor --- src/runtime/runtime.go | 2 -- 1 file changed, 2 deletions(-) (limited to 'src/runtime/runtime.go') 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)) -- cgit v1.3