From: Dmitriy Vyukov Date: Thu, 5 Apr 2012 14:37:46 +0000 (+0400) Subject: runtime: remove redundant code X-Git-Tag: go1.1rc2~3437 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=a28a10e1a2352736fa8bbf6def02517f42260e34;p=gostls13.git runtime: remove redundant code R=rsc CC=golang-dev https://golang.org/cl/5987046 --- 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++;