]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: remove unnecessary traceNextGC
authorAustin Clements <austin@google.com>
Mon, 13 Apr 2015 22:38:16 +0000 (18:38 -0400)
committerAustin Clements <austin@google.com>
Tue, 14 Apr 2015 20:54:23 +0000 (20:54 +0000)
Commit d7e0ad4 removed the next_gc manipulation from mSpan_Sweep, but
left in the traceNextGC() for recording the updated next_gc
value. Remove this now unnecessary call.

Change-Id: I28e0de071661199be9810d7bdcc81ce50b5a58ae
Reviewed-on: https://go-review.googlesource.com/8894
Reviewed-by: Dmitry Vyukov <dvyukov@google.com>
Reviewed-by: Rick Hudson <rlh@golang.org>
src/runtime/mgcsweep.go

index a651e03105c310a19d27f8dc4e21d1beea66befe..1785d74eba01bc6508a5679bb1c816c5df17fe53 100644 (file)
@@ -293,7 +293,6 @@ func mSpan_Sweep(s *mspan, preserve bool) bool {
        }
        if trace.enabled {
                traceGCSweepDone()
-               traceNextGC()
        }
        return res
 }