Skip to content

Commit 6c4b54f

Browse files
committed
runtime: missed change from reorganization CL
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 <[email protected]>
1 parent 484f801 commit 6c4b54f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/runtime/mgc.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,9 @@ func gcinstallmarkwb() {
423423
// This is the concurrent mark phase.
424424
//go:nowritebarrier
425425
func gcmark_m() {
426-
gcDrain(nil)
426+
var gcw gcWork
427+
gcDrain(&gcw)
428+
gcw.dispose()
427429
// TODO add another harvestwbuf and reset work.nwait=0, work.ndone=0, and work.nproc=1
428430
// and repeat the above gcDrain.
429431
}

0 commit comments

Comments
 (0)