pike.git/
src/
interpret.c
Branch:
Tag:
Non-build tags
All tags
No tags
2012-07-03
2012-07-03 15:10:24 by Arne Goedeke <el@laramies.com>
df02cff9f9c3b86ecfa83b8c60d44daebf7f3e95 (
5
lines) (+
3
/-
2
)
[
Show
|
Annotate
]
Branch:
arne/block_alloc
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);