- vg_mem.use_libc_malloc = 1;
-#if 0
- vg_prealloc_quota( 128*1024*1024 );
- void *test_allocator = vg_create_linear_allocator( NULL, 2048 );
-
- for( int i=0; i<8; i++ )
- {
- u64 *items = vg_linear_alloc( test_allocator, sizeof(u64) );
- items = vg_linear_extend( test_allocator, items, sizeof(u64));
- items[0] = 43;
- items[1] = 12445;
-
- vg_info( "%lu %lu\n", items[0], items[1] );
- }
-
- vg_linear_clear( test_allocator );
- return 0;
-#endif
-
- vg_prealloc_quota( 128*1024*1024 );