From: j2gg0s Date: Wed, 18 Jan 2023 15:08:29 +0000 (+0000) Subject: runtime: remove duplicate check of work.full in gcMark. X-Git-Tag: go1.21rc1~1835 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=9411075748e305d0b31372cab48bc4ca2dd745fb;p=gostls13.git runtime: remove duplicate check of work.full in gcMark. Change-Id: I659669d7259e7cf73f730232cda11d8525a4aabc GitHub-Last-Rev: 5d183e81285aba64f1f76e5bddbe2f0ae012b138 GitHub-Pull-Request: golang/go#57901 Reviewed-on: https://go-review.googlesource.com/c/go/+/462281 Reviewed-by: Cherry Mui Run-TryBot: Ian Lance Taylor TryBot-Result: Gopher Robot Reviewed-by: Michael Knyszek --- diff --git a/src/runtime/mgc.go b/src/runtime/mgc.go index 1b057070aa..169999460a 100644 --- a/src/runtime/mgc.go +++ b/src/runtime/mgc.go @@ -1449,9 +1449,6 @@ func gcMark(startTime int64) { // Gs, so only do it if checkmark is also enabled. gcMarkRootCheck() } - if work.full != 0 { - throw("work.full != 0") - } // Drop allg snapshot. allgs may have grown, in which case // this is the only reference to the old backing store and