make AVL tree node part of the memory regions; fixes hard to reproduce channel crashes

This commit is contained in:
Araq
2017-01-31 13:08:47 +01:00
parent d59dd577f8
commit c32c39f1de

View File

@@ -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