diff options
Diffstat (limited to 'src/runtime/mgc.go')
| -rw-r--r-- | src/runtime/mgc.go | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/src/runtime/mgc.go b/src/runtime/mgc.go index 8731dd8511..889abfbbc9 100644 --- a/src/runtime/mgc.go +++ b/src/runtime/mgc.go @@ -884,14 +884,7 @@ func gc(mode int) { if debug.gctrace > 0 { stwprocs, maxprocs = gcprocs(), gomaxprocs tSweepTerm = now - if mode == gcBackgroundMode { - // We started GC when heap_live == next_gc, - // but the mutator may have allocated between - // then and now. Report heap when GC started. - heap0 = memstats.next_gc - } else { - heap0 = memstats.heap_live - } + heap0 = memstats.heap_live } pauseStart = now |
