Branch: Tag:

2012-07-03

2012-07-03 15:10:24 by Arne Goedeke <el@laramies.com>

use same amount of pages, as the old allocator

1929:   BLOCK_ALLOC_FILL_PAGES(pike_frame, 4)   #else   #include "gjalloc.h" - struct block_allocator pike_frame_allocator = BA_INIT(sizeof(struct pike_frame), -  4*4096/sizeof(struct pike_frame)); + struct block_allocator pike_frame_allocator = BA_INIT_PAGES(sizeof(struct pike_frame), +  4*PIKE_MALLOC_PAGE_SIZE);   INLINE struct pike_frame * alloc_pike_frame() {    struct pike_frame * f = (struct pike_frame *)ba_alloc(&pike_frame_allocator);    INIT_BLOCK(f);