From: Keith Randall Date: Wed, 9 Oct 2013 20:28:47 +0000 (-0700) Subject: runtime: markfreed's error reports should be prefixed with "markfreed", not "markallo... X-Git-Tag: go1.2rc2~43 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=139cc96a5718f59867e1a4295a29c46bc38a9a29;p=gostls13.git runtime: markfreed's error reports should be prefixed with "markfreed", not "markallocated". R=golang-dev, iant CC=golang-dev https://golang.org/cl/14441055 --- 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;