From: Ian Lance Taylor Date: Sat, 4 Feb 2017 22:05:20 +0000 (-0800) Subject: runtime: remove markBits.clearMarkedNonAtomic X-Git-Tag: go1.9beta1~1732 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=6aee6b895c219300c9c089b79f81c80f0e468dd7;p=gostls13.git 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 --- 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 {