aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKeith Randall <khr@golang.org>2013-10-09 13:28:47 -0700
committerKeith Randall <khr@golang.org>2013-10-09 13:28:47 -0700
commit139cc96a5718f59867e1a4295a29c46bc38a9a29 (patch)
treee7b1eb3d4137c2aa44eccd18ec640c3aef2fc08d
parentc774e902083c677cffb9873e7d46346bcbf8cc21 (diff)
downloadgo-139cc96a5718f59867e1a4295a29c46bc38a9a29.tar.gz
go-139cc96a5718f59867e1a4295a29c46bc38a9a29.zip
runtime: markfreed's error reports should be prefixed with "markfreed", not "markallocated".
R=golang-dev, iant CC=golang-dev https://golang.org/cl/14441055
-rw-r--r--src/pkg/runtime/mgc0.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/pkg/runtime/mgc0.c b/src/pkg/runtime/mgc0.c
index 7ebc2912ea..4b2108ba7a 100644
--- a/src/pkg/runtime/mgc0.c
+++ b/src/pkg/runtime/mgc0.c
@@ -2363,10 +2363,10 @@ runtime·markfreed(void *v, uintptr n)
uintptr *b, obits, bits, off, shift;
if(0)
- runtime·printf("markallocated %p+%p\n", v, n);
+ runtime·printf("markfreed %p+%p\n", v, n);
if((byte*)v+n > (byte*)runtime·mheap.arena_used || (byte*)v < runtime·mheap.arena_start)
- runtime·throw("markallocated: bad pointer");
+ runtime·throw("markfreed: bad pointer");
off = (uintptr*)v - (uintptr*)runtime·mheap.arena_start; // word offset
b = (uintptr*)runtime·mheap.arena_start - off/wordsPerBitmapWord - 1;