make AVL tree node part of the memory regions; fixes hard to reproduce channel crashes
This commit is contained in:
parent
d59dd577f8
commit
c32c39f1de
1 changed files with 1 additions and 1 deletions
|
|
@ -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:
|
if t == a.last and not isBottom(a.deleted) and x == a.deleted.key:
|
||||||
a.deleted.key = t.key
|
a.deleted.key = t.key
|
||||||
a.deleted.upperBound = t.upperBound
|
a.deleted.upperBound = t.upperBound
|
||||||
a.deleted = bottom
|
a.deleted = getBottom(a)
|
||||||
t = t.link[1]
|
t = t.link[1]
|
||||||
deallocAvlNode(a, a.last)
|
deallocAvlNode(a, a.last)
|
||||||
elif t.link[0].level < t.level-1 or
|
elif t.link[0].level < t.level-1 or
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue