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.
This commit is contained in:
Bob Nystrom
2015-10-29 07:38:09 -07:00
parent 25bd182c58
commit 2ff8acbe1a
5 changed files with 22 additions and 24 deletions
+2 -1
View File
@@ -4,4 +4,5 @@ for (i in 1..400000) {
head = { "next" : head }
}
System.print("done") // expect: done
System.gc()
System.print("done") // expect: done
+3 -1
View File
@@ -10,5 +10,7 @@ for (i in 1..1000) {
}
found.add(bar)
}
System.gc()
System.print(found.all {|i| i == 1337}) // expect: true
System.print("DONE!") // expect: DONE!
System.print("done") // expect: done