From 4c806b9bd216595b84eefa3d4187abc0321b7939 Mon Sep 17 00:00:00 2001 From: K Pamnany Date: Thu, 6 Jul 2023 14:37:16 -0400 Subject: [PATCH] RAI: Change task ordering behavior to prioritize older tasks --- base/partr.jl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base/partr.jl b/base/partr.jl index a02272ceab202..7df16b42492ea 100644 --- a/base/partr.jl +++ b/base/partr.jl @@ -50,7 +50,7 @@ function multiq_sift_down(heap::taskheap, idx::Int32) child = Int(child) child > length(heap.tasks) && break if isassigned(heap.tasks, child) && - heap.tasks[child].priority < heap.tasks[idx].priority + heap.tasks[child].priority <= heap.tasks[idx].priority t = heap.tasks[idx] heap.tasks[idx] = heap.tasks[child] heap.tasks[child] = t