Skip to content

Commit

Permalink
workaround for BUG: --gc:orc causes getOccupiedMem() to be always 0
Browse files Browse the repository at this point in the history
  • Loading branch information
timotheecour committed Feb 24, 2020
1 parent 66b8223 commit 9fac41f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/gc/gcleak2.nim
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ inProc()
when collectAlways:
let msg = getOccupiedMem()
else:
doAssert numCollections > 1000 # 3999 on local OSX; leaving some slack
when not defined(gcOrc): # getOccupiedMem() is always 0, wich seems like a bug
doAssert numCollections > 1000 # 3999 on local OSX; leaving some slack
let msg = $(getOccupiedMem(), memMin, memMax, numCollections, numIter)
echo "no leak: ", msg

0 comments on commit 9fac41f

Please sign in to comment.