]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: remove redundant code
authorDmitriy Vyukov <dvyukov@google.com>
Thu, 5 Apr 2012 14:37:46 +0000 (18:37 +0400)
committerDmitriy Vyukov <dvyukov@google.com>
Thu, 5 Apr 2012 14:37:46 +0000 (18:37 +0400)
R=rsc
CC=golang-dev
https://golang.org/cl/5987046

src/pkg/runtime/mcache.c

index 518e00c123d755d8f44412a31e225781e768a800..7ead5e5b663dcb71d17ed429f1ff86b584fdaaa2 100644 (file)
@@ -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++;