1
0
mirror of https://github.com/golang/go synced 2024-10-03 02:31:21 -06:00

runtime: remove GoSched/GoStart trace events around GC

These were appropriate for STW GC, since it interrupted the allocating
Goroutine, but don't apply to concurrent GC, which runs on its own
Goroutine. Forced GC is still STW, but it makes sense to attribute the
GC to the goroutine that called runtime.GC().

Change-Id: If12418ca66dc7e53b8b16025af4e03adb5d9577e
Reviewed-on: https://go-review.googlesource.com/8715
Reviewed-by: Dmitry Vyukov <dvyukov@google.com>
Reviewed-by: Rick Hudson <rlh@golang.org>
This commit is contained in:
Austin Clements 2015-04-09 10:17:06 -04:00
parent eec6fdc90b
commit 6afb5fa48f

View File

@ -324,7 +324,6 @@ func gc(mode int) {
}
if trace.enabled {
traceGoSched()
traceGCStart()
}
@ -459,7 +458,6 @@ func gc(mode int) {
if trace.enabled {
traceGCDone()
traceGoStart()
}
// all done