aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/mgcwork.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/mgcwork.go')
-rw-r--r--src/runtime/mgcwork.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/runtime/mgcwork.go b/src/runtime/mgcwork.go
index 43d5db2fab..1d66200bec 100644
--- a/src/runtime/mgcwork.go
+++ b/src/runtime/mgcwork.go
@@ -363,6 +363,12 @@ func putfull(b *workbuf, entry int) {
b.checknonempty()
b.logput(entry)
lfstackpush(&work.full, &b.node)
+
+ // We just made more work available. Let the GC controller
+ // know so it can encourage more workers to run.
+ if gcphase == _GCmark {
+ gcController.enlistWorker()
+ }
}
// trygetfull tries to get a full or partially empty workbuffer.