aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/mcheckmark.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/mcheckmark.go')
-rw-r--r--src/runtime/mcheckmark.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/mcheckmark.go b/src/runtime/mcheckmark.go
index 318f40f2eb..083220f449 100644
--- a/src/runtime/mcheckmark.go
+++ b/src/runtime/mcheckmark.go
@@ -68,7 +68,7 @@ func startCheckmarks() {
// endCheckmarks ends the checkmarks phase.
func endCheckmarks() {
- if gcMarkWorkAvailable(nil) {
+ if !gcIsMarkDone() {
throw("GC work not flushed")
}
useCheckmark = false