fixes 7833 (#8533)

* fixes #7833; still to-do: fix setLen
* make tests green again
* also fixes setLen and string concats; refs #7833
* change formating to avoid a compiler warning
* emit the write barrier also for addChar
* fixes yet another regression
* make setLengthStr compile for the old version
* make growobjcrash complete earlier
This commit is contained in:
Andreas Rumpf 2018-08-05 11:42:38 +02:00 • committed by GitHub
commit c57e320c94
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 114 additions and 29 deletions

View file

@ -15,7 +15,7 @@ proc main =
let val = s[i]()
if val != $(i*i): echo "bug ", val
if getOccupiedMem() > 3000_000: quit("still a leak!")
if getOccupiedMem() > 5000_000: quit("still a leak!")
echo "success"
main()

View file

@ -14,7 +14,7 @@ proc handleRequest(query: string): StringTableRef =
let x = foo
result = x()
const Limit = when compileOption("gc", "markAndSweep"): 5*1024*1024 else: 700_000
const Limit = 5*1024*1024
proc main =
var counter = 0