diff --git a/src/runtime/mgc.go b/src/runtime/mgc.go index 497695cf18..70661e46d0 100644 --- a/src/runtime/mgc.go +++ b/src/runtime/mgc.go @@ -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. }