Author: Armin Rigo <ar...@tunes.org>
Branch: 
Changeset: r176:f322b8eb887f
Date: 2013-06-17 17:43 +0200
http://bitbucket.org/pypy/stmgc/changeset/f322b8eb887f/

Log:    next test passes

diff --git a/c4/test/test_gcpage.py b/c4/test/test_gcpage.py
--- a/c4/test/test_gcpage.py
+++ b/c4/test/test_gcpage.py
@@ -105,3 +105,19 @@
     assert count_pages() == 1
     major_collect()
     assert count_pages() == 0
+
+def test_free_all_unused_local_pages():
+    def f1(r):
+        p1 = oalloc(HDR)
+        assert count_pages() == 1
+        r.set(1)
+        r.wait(2)
+        assert count_pages() == 0
+    def f2(r):
+        p2 = oalloc(HDR)
+        r.wait(1)
+        assert count_pages() == 1
+        major_collect()
+        assert count_pages() == 0
+        r.set(2)
+    run_parallel(f1, f2)
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to