pike.git/
src/
block_allocator.c
Branch:
Tag:
Non-build tags
All tags
No tags
2012-02-09
2012-02-09 13:29:47 by Arne Goedeke <el@laramies.com>
5df15ea22c38db94e709caee5926fc4f7b939cd2 (
5
lines) (+
3
/-
2
)
[
Show
|
Annotate
]
Branch:
arne/block_alloc
set prev only if first
396:
if (unlikely(p->blocks_used == a->blocks)) { a->first = p->next;
-
BA_PAGE(a, a->first)->prev = 0;
+
if (!a->first) { a->last = 0;
-
}
+
}
else
+
BA_PAGE(a, a->first)->prev = 0;
p->next = 0; } else { //fprintf(stderr, "next: %u\n", ((struct ba_block_header*)ptr)->next);