medfall

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

commit d5d0c14cec7465765382b1de4cf8af05f9d96dfd
parent 6df8b214ee16b78237bfa0df82da7a3b937d6842
Author: Michael Savage <mikejsavage@gmail.com>
Date:   Wed Oct 12 19:51:49 +0300

Give worker threads 16MB of memory each

Diffstat:
work_queue.cc | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/work_queue.cc b/work_queue.cc @@ -55,8 +55,8 @@ void workqueue_init( WorkQueue * queue, MemoryArena * arena, u32 num_threads ) { queue->num_threads = num_threads; queue->arenas = memarena_push_many( arena, MemoryArena, num_threads + 1 ); - for( u32 i = 0; i <= num_threads; i++ ) { - queue->arenas[ i ] = memarena_push_arena( arena, megabytes( 1 ) ); + for( u32 i = 0; i < num_threads + 1; i++ ) { + queue->arenas[ i ] = memarena_push_arena( arena, megabytes( 16 ) ); } // TODO: if we comment this out we can get rid of the wait at the bottom