pike.git
/
src
/
constants.c
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/constants.c:81:
#undef INIT_BLOCK #define INIT_BLOCK(X) do { \ DO_IF_DEBUG (DOUBLELINK (first_callable, X)); \ } while (0) BLOCK_ALLOC_FILL_PAGES(callable,2) #else #include "gjalloc.h" static struct block_allocator callable_allocator
-
= BA_INIT(sizeof(struct callable), 2*
4096/sizeof(struct callable
)
)
;
+
= BA_INIT
_PAGES
(sizeof(struct callable), 2*
PIKE_MALLOC_PAGE_SIZE
);
void really_free_callable(struct callable * c) { EXIT_BLOCK(c); ba_free(&callable_allocator, c); } void count_memory_in_callables(size_t * num, size_t * size) { ba_count_all(&callable_allocator, num, size); } #endif