bugfixes; field discriminant checks; linearScanEnd, unroll, shallow pragmas
This commit is contained in:
parent
8d734244b1
commit
5b789f2da8
45 changed files with 2342 additions and 243 deletions
5
tests/gc/gcleak.nim
Normal file → Executable file
5
tests/gc/gcleak.nim
Normal file → Executable file
|
|
@ -5,7 +5,10 @@ type
|
|||
proc MakeObj(): TTestObj =
|
||||
result.x = "Hello"
|
||||
|
||||
while true:
|
||||
for i in 1 .. 100_000_000:
|
||||
var obj = MakeObj()
|
||||
if getOccupiedMem() > 300_000: quit("still a leak!")
|
||||
# echo GC_getstatistics()
|
||||
|
||||
echo "no leak: ", getOccupiedMem()
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue