summary refs log tree commit diff stats
path: root/lib/system/avltree.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2017-01-31 13:08:47 +0100
committerAraq <rumpf_a@web.de>2017-01-31 13:08:47 +0100
commitc32c39f1def6ac5be07ec049ded846386f802bf1 (patch)
tree5509ed205f0956efa0d36f8266d40f2c7aacce35 /lib/system/avltree.nim
parentd59dd577f8fbac46cb2a89ecd011e933a00ec697 (diff)
downloadNim-c32c39f1def6ac5be07ec049ded846386f802bf1.tar.gz
make AVL tree node part of the memory regions; fixes hard to reproduce channel crashes
Diffstat (limited to 'lib/system/avltree.nim')
-rw-r--r--lib/system/avltree.nim2
1 files changed, 1 insertions, 1 deletions
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