commit 5b91be8e4f80bb99462a9fb7572ee81305c841ae parent 1bef1d52b1a8ad495002ba9d3a1bd6e3dbb94f7f Author: Michael Savage <mikejsavage@gmail.com> Date: Tue Jul 4 20:20:22 +0300 Worker threads don't need 16MB of scratch space Diffstat:
work_queue.cc | | | 2 | +- |
diff --git a/work_queue.cc b/work_queue.cc @@ -61,7 +61,7 @@ void workqueue_init( WorkQueue * queue, MemoryArena * arena, u32 num_threads ) { queue->arenas = memarena_push_array( arena, MemoryArena, num_threads + 1 ); for( u32 i = 0; i < num_threads + 1; i++ ) { - queue->arenas[ i ] = memarena_push_arena( arena, megabytes( 16 ) ); + queue->arenas[ i ] = memarena_push_arena( arena, megabytes( 1 ) ); } ThreadInfo * infos = memarena_push_many( arena, ThreadInfo, num_threads );