1
0
forked from Mirror/wren
Files
wren/test/language/deeply_nested_gc.wren
Bob Nystrom 2ff8acbe1a Tweak a few things in the new GC.
- Make sure it handles an empty gray set.
- Make sure growing the gray stack doesn't itself trigger a GC.
- Make sure it works when stress testing is enabled.
- Ensure the tests kick off a GC.
2015-10-29 07:38:09 -07:00

9 lines
112 B
Plaintext

var head
for (i in 1..400000) {
head = { "next" : head }
}
System.gc()
System.print("done") // expect: done