aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/mgcmark.go
diff options
context:
space:
mode:
authorAustin Clements <austin@google.com>2018-08-26 21:33:26 -0400
committerAustin Clements <austin@google.com>2018-10-02 20:35:38 +0000
commit0906d648aa173f65aaafd6296d43247b426f05f3 (patch)
treecbc017b0b1353a79059c4cc00a4881c557c2c901 /src/runtime/mgcmark.go
parent550dfc8ae1651eb954274045e31f8ef2e95f6c6c (diff)
downloadgo-0906d648aa173f65aaafd6296d43247b426f05f3.tar.gz
go-0906d648aa173f65aaafd6296d43247b426f05f3.zip
runtime: eliminate gchelper mechanism
Now that we do no mark work during mark termination, we no longer need the gchelper mechanism. Updates #26903. Updates #17503. Change-Id: Ie94e5c0f918cfa047e88cae1028fece106955c1b Reviewed-on: https://go-review.googlesource.com/c/134785 Run-TryBot: Austin Clements <austin@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Rick Hudson <rlh@golang.org>
Diffstat (limited to 'src/runtime/mgcmark.go')
-rw-r--r--src/runtime/mgcmark.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/src/runtime/mgcmark.go b/src/runtime/mgcmark.go
index 0f220dd1b9..34e9776d27 100644
--- a/src/runtime/mgcmark.go
+++ b/src/runtime/mgcmark.go
@@ -685,10 +685,6 @@ func scanstack(gp *g, gcw *gcWork) {
if gp == getg() {
throw("can't scan our own stack")
}
- mp := gp.m
- if mp != nil && mp.helpgc != 0 {
- throw("can't scan gchelper stack")
- }
// Shrink the stack if not much of it is being used.
shrinkstack(gp)