Exemplo n.º 1
0
/* }}} */
int main() /* {{{ */
{
	int i;

	xc_allocator_init();

	for (i = 0; i < sizeof(xc_allocator_infos) / sizeof(xc_allocator_infos[0]) && xc_allocator_infos[i].name; i ++) {
		fprintf(stderr, "testing %s...\n", xc_allocator_infos[i].name);
		testAllocator(xc_allocator_infos[i].allocator_vtable);
	}
	return 0;
}
Exemplo n.º 2
0
void xc_shm_init_modules() /* {{{ */
{
	extern void xc_allocator_init();
#ifdef HAVE_XCACHE_TEST
	extern void xc_shm_malloc_register();
#endif
	extern void xc_shm_mmap_register();

	memset(xc_shm_schemes, 0, sizeof(xc_shm_schemes));
	xc_allocator_init();
#ifdef HAVE_XCACHE_TEST
	xc_shm_malloc_register();
#endif
	xc_shm_mmap_register();
}