From 6aee6b895c219300c9c089b79f81c80f0e468dd7 Mon Sep 17 00:00:00 2001 From: Ian Lance Taylor Date: Sat, 4 Feb 2017 14:05:20 -0800 Subject: [PATCH] runtime: remove markBits.clearMarkedNonAtomic It's not used, it's never been used, and it doesn't do what its doc comment says it does. Fixes #18941. Change-Id: Ia89d97fb87525f5b861d7701f919e0d6b7cbd376 Reviewed-on: https://go-review.googlesource.com/36322 Reviewed-by: Austin Clements Reviewed-by: Brad Fitzpatrick --- src/runtime/mbitmap.go | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/runtime/mbitmap.go b/src/runtime/mbitmap.go index 89d8a4cc76..9dfc2620cf 100644 --- a/src/runtime/mbitmap.go +++ b/src/runtime/mbitmap.go @@ -332,11 +332,6 @@ func (m markBits) clearMarked() { atomic.And8(m.bytep, ^m.mask) } -// clearMarkedNonAtomic clears the marked bit non-atomically. -func (m markBits) clearMarkedNonAtomic() { - *m.bytep ^= m.mask -} - // markBitsForSpan returns the markBits for the span base address base. func markBitsForSpan(base uintptr) (mbits markBits) { if base < mheap_.arena_start || base >= mheap_.arena_used { -- 2.50.0