runtime: uncomment check for gchelper on g0 stack
Now that systemstack changes to the g0 stack, this check passes.
Change-Id: I56e8ec3b2e80794d7b2b3eb43f3fe6bb6cac69d4
Reviewed-on: https://go-review.googlesource.com/46460
Reviewed-by: Than McIntosh <thanm@google.com>
diff --git a/libgo/go/runtime/mgc.go b/libgo/go/runtime/mgc.go
index ebb00e1..a4fc2be 100644
--- a/libgo/go/runtime/mgc.go
+++ b/libgo/go/runtime/mgc.go
@@ -1923,10 +1923,9 @@
if _g_.m.helpgc < 0 || _g_.m.helpgc >= _MaxGcproc {
throw("gchelperstart: bad m->helpgc")
}
- // For gccgo we run gchelper on the normal g stack.
- // if _g_ != _g_.m.g0 {
- // throw("gchelper not running on g0 stack")
- // }
+ if _g_ != _g_.m.g0 {
+ throw("gchelper not running on g0 stack")
+ }
}
// itoaDiv formats val/(10**dec) into buf.