diff options
Diffstat (limited to 'src/runtime/malloc.go')
| -rw-r--r-- | src/runtime/malloc.go | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/runtime/malloc.go b/src/runtime/malloc.go index 69eb090706..f827b9c418 100644 --- a/src/runtime/malloc.go +++ b/src/runtime/malloc.go @@ -368,6 +368,12 @@ func gcwork(force int32) { if force == 0 { gctimer.cycle.sweepterm = nanotime() } + + if trace.enabled { + traceGoSched() + traceGCStart() + } + // Pick up the remaining unswept/not being swept spans before we STW for gosweepone() != ^uintptr(0) { sweep.nbgsweep++ @@ -423,6 +429,11 @@ func gcwork(force int32) { gccheckmark_m(startTime, eagersweep) }) + if trace.enabled { + traceGCDone() + traceGoStart() + } + // all done mp.gcing = 0 |
