Fix gc tests for BoehmGC (#7094)

This commit is contained in:
Sergey Avseyev 2018-01-18 11:04:32 +03:00 • committed by Andreas Rumpf
commit d9c922fc70
3 changed files with 3 additions and 6 deletions

View file

@ -38,7 +38,7 @@ proc newPlus(a, b: ref TExpr): ref TPlusExpr =
result.b = b
result.op2 = $getOccupiedMem()
const Limit = when compileOption("gc", "markAndSweep"): 5*1024*1024 else: 500_000
const Limit = when compileOption("gc", "markAndSweep") or compileOption("gc", "boehm"): 5*1024*1024 else: 500_000
for i in 0..100_000:
var s: array[0..11, ref TExpr]