pike.git
/
src
/
constants.c
version
»
Context lines:
10
20
40
80
file
none
3
pike.git/src/constants.c:90:
static struct block_allocator callable_allocator = 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); }
+
void free_all_callable_blocks() {
+
ba_destroy(&callable_allocator);
+
}
#endif int global_callable_flags=0; /* Eats one ref to 'type' and 'name' */ PMOD_EXPORT struct callable *low_make_callable(c_fun fun, struct pike_string *name, struct pike_type *type, int flags, optimize_fun optimize,