From 8df0ec51ed82778c5b475de2d9d65682a73f1b3f Mon Sep 17 00:00:00 2001 From: Radkesvat <134321679+radkesvat@users.noreply.github.com> Date: Thu, 15 Aug 2024 19:33:11 +0000 Subject: [PATCH] fixes --- ww/ww.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ww/ww.c b/ww/ww.c index a86cd74..fece671 100644 --- a/ww/ww.c +++ b/ww/ww.c @@ -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, @@ -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;