]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: markfreed's error reports should be prefixed with "markfreed", not "markallo...
authorKeith Randall <khr@golang.org>
Wed, 9 Oct 2013 20:28:47 +0000 (13:28 -0700)
committerKeith Randall <khr@golang.org>
Wed, 9 Oct 2013 20:28:47 +0000 (13:28 -0700)
R=golang-dev, iant
CC=golang-dev
https://golang.org/cl/14441055

src/pkg/runtime/mgc0.c

index 7ebc2912ea8c5456567aa344b1d8270ddaeb683f..4b2108ba7a12c04fc7ffd779986630a6effa6aea 100644 (file)
@@ -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;