aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/runtime
diff options
context:
space:
mode:
authorDmitriy Vyukov <dvyukov@google.com>2012-04-05 18:37:46 +0400
committerDmitriy Vyukov <dvyukov@google.com>2012-04-05 18:37:46 +0400
commita28a10e1a2352736fa8bbf6def02517f42260e34 (patch)
tree34015fa26c67ee82db9aa76927a72d823c7a66ca /src/pkg/runtime
parent8374e67876b887c8a257f63f4e12ac1599ee793e (diff)
downloadgo-a28a10e1a2352736fa8bbf6def02517f42260e34.tar.xz
runtime: remove redundant code
R=rsc CC=golang-dev https://golang.org/cl/5987046
Diffstat (limited to 'src/pkg/runtime')
-rw-r--r--src/pkg/runtime/mcache.c5
1 files changed, 0 insertions, 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++;