]> mj.ucw.cz Git - libucw.git/blobdiff - ucw/sorter/array.c
Main: Removing an already removed event is always safe.
[libucw.git] / ucw / sorter / array.c
index 4c733aa346a53e70daa0af682377411e10db5239..53505d2a47e0527bb5b7c1460f669afce5144580 100644 (file)
@@ -93,7 +93,7 @@ asort_start_threads(uns run)
     {
       // XXX: If somebody overrides the radix-sorter parameters to insane values,
       // he also should override the stack size to insane values.
-      asort_thread_pool.stack_size = default_thread_stack_size + rs_estimate_stack();
+      asort_thread_pool.stack_size = ucwlib_thread_stack_size + rs_estimate_stack();
       asort_thread_pool.num_threads = sorter_threads;
       ASORT_TRACE("Initializing thread pool (%d threads, %dK stack)", sorter_threads, asort_thread_pool.stack_size >> 10);
       worker_pool_init(&asort_thread_pool);