From 139cc96a5718f59867e1a4295a29c46bc38a9a29 Mon Sep 17 00:00:00 2001 From: Keith Randall Date: Wed, 9 Oct 2013 13:28:47 -0700 Subject: [PATCH] runtime: markfreed's error reports should be prefixed with "markfreed", not "markallocated". R=golang-dev, iant CC=golang-dev https://golang.org/cl/14441055 --- src/pkg/runtime/mgc0.c | 4 ++-- 1 file 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; -- 2.50.0