From 9411075748e305d0b31372cab48bc4ca2dd745fb Mon Sep 17 00:00:00 2001 From: j2gg0s Date: Wed, 18 Jan 2023 15:08:29 +0000 Subject: [PATCH] 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 --- src/runtime/mgc.go | 3 --- 1 file changed, 3 deletions(-) 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 -- 2.50.0