From a28a10e1a2352736fa8bbf6def02517f42260e34 Mon Sep 17 00:00:00 2001 From: Dmitriy Vyukov Date: Thu, 5 Apr 2012 18:37:46 +0400 Subject: [PATCH] runtime: remove redundant code R=rsc CC=golang-dev https://golang.org/cl/5987046 --- src/pkg/runtime/mcache.c | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/pkg/runtime/mcache.c b/src/pkg/runtime/mcache.c index 518e00c123..7ead5e5b66 100644 --- a/src/pkg/runtime/mcache.c +++ b/src/pkg/runtime/mcache.c @@ -43,11 +43,6 @@ runtime·MCache_Alloc(MCache *c, int32 sizeclass, uintptr size, int32 zeroed) // block is zeroed iff second word is zero ... if(size > sizeof(uintptr) && ((uintptr*)v)[1] != 0) runtime·memclr((byte*)v, size); - else { - // ... except for the link pointer - // that we used above; zero that. - v->next = nil; - } } c->local_cachealloc += size; c->local_objects++; -- 2.48.1