mirror of
https://github.com/nim-lang/Nim.git
synced 2026-01-07 21:43:33 +00:00
make AVL tree node part of the memory regions; fixes hard to reproduce channel crashes
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user