temporary debugging code for the memory leak investigation

This commit is contained in:
Zahary Karadjov 2012-11-28 01:14:02 +02:00
commit c67520a7c5
10 changed files with 125 additions and 25 deletions

View file

@ -114,6 +114,10 @@ proc freezeMutableRope*(r: PRope) {.inline.} =
var
cache: array[0..2048*2 -1, PRope]
proc resetRopeCache* =
for i in low(cache)..high(cache):
cache[i] = nil
proc RopeInvariant(r: PRope): bool =
if r == nil:
result = true