Commit 6aee6b89 authored by Ian Lance Taylor's avatar Ian Lance Taylor

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/36322Reviewed-by: default avatarAustin Clements <austin@google.com>
Reviewed-by: default avatarBrad Fitzpatrick <bradfitz@golang.org>
parent 172311ce
...@@ -332,11 +332,6 @@ func (m markBits) clearMarked() { ...@@ -332,11 +332,6 @@ func (m markBits) clearMarked() {
atomic.And8(m.bytep, ^m.mask) 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. // markBitsForSpan returns the markBits for the span base address base.
func markBitsForSpan(base uintptr) (mbits markBits) { func markBitsForSpan(base uintptr) (mbits markBits) {
if base < mheap_.arena_start || base >= mheap_.arena_used { if base < mheap_.arena_start || base >= mheap_.arena_used {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment