]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: remove markBits.clearMarkedNonAtomic
authorIan Lance Taylor <iant@golang.org>
Sat, 4 Feb 2017 22:05:20 +0000 (14:05 -0800)
committerIan Lance Taylor <iant@golang.org>
Mon, 6 Feb 2017 04:45:55 +0000 (04:45 +0000)
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 <austin@google.com>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/runtime/mbitmap.go

index 89d8a4cc76e43c1431c5721ad1fac9c64af65fe8..9dfc2620cfd0226252c4193b0f4da0827c64b4f6 100644 (file)
@@ -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 {