summaryrefslogtreecommitdiff
path: root/libgo/runtime/mcache.c
diff options
context:
space:
mode:
Diffstat (limited to 'libgo/runtime/mcache.c')
-rw-r--r--libgo/runtime/mcache.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/libgo/runtime/mcache.c b/libgo/runtime/mcache.c
index 6c60aebbe67..570c06a731b 100644
--- a/libgo/runtime/mcache.c
+++ b/libgo/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++;