aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/proc.go
diff options
context:
space:
mode:
authorAustin Clements <austin@google.com>2015-07-08 14:18:33 -0700
committerAustin Clements <austin@google.com>2015-07-09 05:53:21 +0000
commit4b2774f5ea4f6f0beb75259f65e60585b6dbfd56 (patch)
treecfa696764e618f41d55bef0e8cbf79014d5a3cbd /src/runtime/proc.go
parent012917afba1dfe62b37acf8f5087b98c11f64f25 (diff)
downloadgo-4b2774f5ea4f6f0beb75259f65e60585b6dbfd56.tar.xz
runtime: make sysmon-triggered GC concurrent
sysmon triggers a GC if there has been no GC for two minutes. Currently, this is a STW GC. There is no reason for this to be STW, so make it concurrent. Fixes #10261. Change-Id: I92f3ac37272d5c2a31480ff1fa897ebad08775a9 Reviewed-on: https://go-review.googlesource.com/11955 Reviewed-by: Rob Pike <r@golang.org> Reviewed-by: Russ Cox <rsc@golang.org>
Diffstat (limited to 'src/runtime/proc.go')
-rw-r--r--src/runtime/proc.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/proc.go b/src/runtime/proc.go
index 805b96e627..1a4c6c109f 100644
--- a/src/runtime/proc.go
+++ b/src/runtime/proc.go
@@ -154,7 +154,7 @@ func forcegchelper() {
if debug.gctrace > 0 {
println("GC forced")
}
- startGC(gcForceMode)
+ startGC(gcBackgroundMode)
}
}