type checkmarksMap … var useCheckmark … // startCheckmarks prepares for the checkmarks phase. // // The world must be stopped. func startCheckmarks() { … } // endCheckmarks ends the checkmarks phase. func endCheckmarks() { … } // setCheckmark throws if marking object is a checkmarks violation, // and otherwise sets obj's checkmark. It returns true if obj was // already checkmarked. func setCheckmark(obj, base, off uintptr, mbits markBits) bool { … }