From c32c39f1def6ac5be07ec049ded846386f802bf1 Mon Sep 17 00:00:00 2001 From: Araq Date: Tue, 31 Jan 2017 13:08:47 +0100 Subject: [PATCH] make AVL tree node part of the memory regions; fixes hard to reproduce channel crashes --- lib/system/avltree.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/system/avltree.nim b/lib/system/avltree.nim index 96c187841..8d4b7e897 100644 --- a/lib/system/avltree.nim +++ b/lib/system/avltree.nim @@ -81,7 +81,7 @@ proc del(a: var MemRegion, t: var PAvlNode, x: int) {.benign.} = if t == a.last and not isBottom(a.deleted) and x == a.deleted.key: a.deleted.key = t.key a.deleted.upperBound = t.upperBound - a.deleted = bottom + a.deleted = getBottom(a) t = t.link[1] deallocAvlNode(a, a.last) elif t.link[0].level < t.level-1 or