From c8a0d1c344a6da9bbe6c0bad34dd3d12fe11d0df Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Thu, 22 Jun 2017 22:12:50 +0000 Subject: runtime: uncomment check for gchelper on g0 stack Now that systemstack changes to the g0 stack, this check passes. Reviewed-on: https://go-review.googlesource.com/46460 From-SVN: r249578 --- libgo/go/runtime/mgc.go | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'libgo') 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 @@ func gchelperstart() { 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. -- cgit v1.1