Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
radkesvat committed Aug 15, 2024
1 parent c09e109 commit 8df0ec5
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ww/ww.c
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ static void initalizeWorker(worker_t *worker, tid_t tid)
{
*worker = (worker_t) {.tid = tid};

worker->loop = hloop_new(HLOOP_FLAG_AUTO_FREE, worker->buffer_pool, tid);
worker->context_pool = newGenericPoolWithCap(GSTATE.masterpool_context_pools, (16) + GSTATE.ram_profile,
allocContextPoolHandle, destroyContextPoolHandle);
worker->line_pool = newGenericPoolWithCap(GSTATE.masterpool_line_pools, (8) + GSTATE.ram_profile,
Expand All @@ -47,6 +46,9 @@ static void initalizeWorker(worker_t *worker, tid_t tid)
worker->buffer_pool = createBufferPool(GSTATE.masterpool_buffer_pools_large, GSTATE.masterpool_buffer_pools_small,
worker->shift_buffer_pool, (0) + GSTATE.ram_profile);

// note that loops depeneds on worker->buffer_pool
worker->loop = hloop_new(HLOOP_FLAG_AUTO_FREE, worker->buffer_pool, tid);

GSTATE.shortcut_context_pools[tid] = worker->context_pool;
GSTATE.shortcut_line_pools[tid] = worker->line_pool;
GSTATE.shortcut_pipeline_msg_pools[tid] = worker->pipeline_msg_pool;
Expand Down

0 comments on commit 8df0ec5

Please sign in to comment.