]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/trace: label mark termination spans as such
authorAustin Clements <austin@google.com>
Thu, 29 Sep 2016 15:59:56 +0000 (11:59 -0400)
committerAustin Clements <austin@google.com>
Fri, 7 Oct 2016 18:33:23 +0000 (18:33 +0000)
Currently these are labeled "MARK", which was accurate in the STW
collector, but these really indicate mark termination now, since
marking happens for the full duration of the concurrent GC. Re-label
them as "MARK TERMINATION" to clarify this.

Change-Id: Ie98bd961195acde49598b4fa3f9e7d90d757c0a6
Reviewed-on: https://go-review.googlesource.com/30018
Reviewed-by: Dmitry Vyukov <dvyukov@google.com>
src/cmd/trace/trace.go
src/internal/trace/parser.go
src/runtime/trace.go

index 7d38ab07997091a658e30f76ef77e39a7d04ebfe..d87a5bac384c154fdb07c7c9424af5eb064692b2 100644 (file)
@@ -362,7 +362,7 @@ func generateTrace(params *traceParams) ViewerData {
                        if ctx.gtrace {
                                continue
                        }
-                       ctx.emitSlice(ev, "MARK")
+                       ctx.emitSlice(ev, "MARK TERMINATION")
                case trace.EvGCScanDone:
                case trace.EvGCSweepStart:
                        ctx.emitSlice(ev, "SWEEP")
index 527aba7ab4be6835ef36e8974730c6cefda7331e..fa62eccf72f93103f7a5be09147f9a1b8e82028d 100644 (file)
@@ -858,8 +858,8 @@ const (
        EvProcStop       = 6  // stop of P [timestamp]
        EvGCStart        = 7  // GC start [timestamp, seq, stack id]
        EvGCDone         = 8  // GC done [timestamp]
-       EvGCScanStart    = 9  // GC scan start [timestamp]
-       EvGCScanDone     = 10 // GC scan done [timestamp]
+       EvGCScanStart    = 9  // GC mark termination start [timestamp]
+       EvGCScanDone     = 10 // GC mark termination done [timestamp]
        EvGCSweepStart   = 11 // GC sweep start [timestamp, stack id]
        EvGCSweepDone    = 12 // GC sweep done [timestamp]
        EvGoCreate       = 13 // goroutine creation [timestamp, new goroutine id, new stack id, stack id]
index 707e4c617b1712a9260e612c02ce45ff082eea2b..b64debcac41b3d54db330a3ef85006e524870f23 100644 (file)
@@ -28,8 +28,8 @@ const (
        traceEvProcStop       = 6  // stop of P [timestamp]
        traceEvGCStart        = 7  // GC start [timestamp, seq, stack id]
        traceEvGCDone         = 8  // GC done [timestamp]
-       traceEvGCScanStart    = 9  // GC scan start [timestamp]
-       traceEvGCScanDone     = 10 // GC scan done [timestamp]
+       traceEvGCScanStart    = 9  // GC mark termination start [timestamp]
+       traceEvGCScanDone     = 10 // GC mark termination done [timestamp]
        traceEvGCSweepStart   = 11 // GC sweep start [timestamp, stack id]
        traceEvGCSweepDone    = 12 // GC sweep done [timestamp]
        traceEvGoCreate       = 13 // goroutine creation [timestamp, new goroutine id, new stack id, stack id]