diff options
| author | Austin Clements <austin@google.com> | 2016-12-22 17:45:55 -0700 |
|---|---|---|
| committer | Austin Clements <austin@google.com> | 2017-03-04 02:56:35 +0000 |
| commit | 3399fd254dcdf4e8a9be8c327076de5f9efe1b3a (patch) | |
| tree | 1b690a6cb7688f5a8cbfc9f31dbc2854b94c3ded /src/runtime/runtime2.go | |
| parent | 7523baed098789b8b4e2a5b295b14db91ab5e5cf (diff) | |
| download | go-3399fd254dcdf4e8a9be8c327076de5f9efe1b3a.tar.xz | |
runtime: remove unused gcstats
The gcstats structure is no longer consumed by anything and no longer
tracks statistics that are particularly relevant to the concurrent
garbage collector. Remove it. (Having statistics is probably a good
idea, but these aren't the stats we need these days and we don't have
a way to get them out of the runtime.)
In preparation for #13613.
Change-Id: Ib63e2f9067850668f9dcbfd4ed89aab4a6622c3f
Reviewed-on: https://go-review.googlesource.com/34936
Run-TryBot: Austin Clements <austin@google.com>
Reviewed-by: Rick Hudson <rlh@golang.org>
Diffstat (limited to 'src/runtime/runtime2.go')
| -rw-r--r-- | src/runtime/runtime2.go | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/src/runtime/runtime2.go b/src/runtime/runtime2.go index 5c05c20d94..7c1591994e 100644 --- a/src/runtime/runtime2.go +++ b/src/runtime/runtime2.go @@ -292,16 +292,6 @@ type sudog struct { c *hchan // channel } -type gcstats struct { - // the struct must consist of only uint64's, - // because it is casted to uint64[]. - nhandoff uint64 - nhandoffcnt uint64 - nprocyield uint64 - nosyield uint64 - nsleep uint64 -} - type libcall struct { fn uintptr n uintptr // number of parameters @@ -436,7 +426,6 @@ type m struct { fflag uint32 // floating point compare flags locked uint32 // tracking for lockosthread nextwaitm uintptr // next m waiting for lock - gcstats gcstats needextram bool traceback uint8 waitunlockf unsafe.Pointer // todo go func(*g, unsafe.pointer) bool |
