]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: missed change from reorganization CL
authorRuss Cox <rsc@golang.org>
Thu, 19 Feb 2015 20:45:29 +0000 (15:45 -0500)
committerRuss Cox <rsc@golang.org>
Thu, 19 Feb 2015 20:46:59 +0000 (20:46 +0000)
That is, I accidentally dropped this change of Austin's
when preparing my CL. I blame Git.

Change-Id: I9dd772c84edefad96c4b16785fdd2dea04a4a0d6
Reviewed-on: https://go-review.googlesource.com/5320
Reviewed-by: Austin Clements <austin@google.com>
src/runtime/mgc.go

index 497695cf1859bb898f7574dcaaa4c146d7f886c8..70661e46d0984b9323dc0db24507a6eba082ae51 100644 (file)
@@ -423,7 +423,9 @@ func gcinstallmarkwb() {
 // This is the concurrent mark phase.
 //go:nowritebarrier
 func gcmark_m() {
-       gcDrain(nil)
+       var gcw gcWork
+       gcDrain(&gcw)
+       gcw.dispose()
        // TODO add another harvestwbuf and reset work.nwait=0, work.ndone=0, and work.nproc=1
        // and repeat the above gcDrain.
 }