runtime: correct function name in throw message

Change-Id: I8fd271066925734c3f7196f64db04f27c4ce27cb
Reviewed-on: https://go-review.googlesource.com/30274
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
This commit is contained in:
Nick Craig-Wood 2016-10-04 14:04:18 +01:00 committed by Ian Lance Taylor
parent f28cf8346c
commit 6b795e77df
1 changed files with 1 additions and 1 deletions

View File

@ -336,7 +336,7 @@ func (m markBits) clearMarkedNonAtomic() {
// 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 {
throw("heapBitsForSpan: base out of range")
throw("markBitsForSpan: base out of range")
}
mbits = markBitsForAddr(base)
if mbits.mask != 1 {