ref: 3a641b0374f9991ba0779ac9dbdb4d3df6d4aee3
parent: 67195e1367cb98054844a4ed0f567ab43977f0d0
author: Ori Bernstein <[email protected]>
date: Tue Jul 24 13:18:08 EDT 2012
Initialize the entry to the loop correctly.
--- a/alloc.myr
+++ b/alloc.myr
@@ -102,7 +102,7 @@
s.nfree = bkt.nper
/* skip past the slab header */
off = align(sizeof(slab), Align)
- b = nextbin(s castto(bin*), off)
+ bnext = nextbin(s castto(bin*), off)
for i = 0; i < bkt.nper; i++
b = bnext
bnext = nextbin(b, bkt.sz)