Author: Armin Rigo <[email protected]>
Branch: 
Changeset: r49976:ccac319dfdd7
Date: 2011-11-29 19:30 +0100
http://bitbucket.org/pypy/pypy/changeset/ccac319dfdd7/

Log:    The test for ca55b862ead9. Without the fix, it crashes with
        MemoryError as originally reported by ltratt with the Converge VM.

diff --git a/pypy/rlib/test/test_rstacklet.py b/pypy/rlib/test/test_rstacklet.py
--- a/pypy/rlib/test/test_rstacklet.py
+++ b/pypy/rlib/test/test_rstacklet.py
@@ -65,6 +65,15 @@
             self.tasks[0].withdepth(self.random.genrand32() % 50)
             assert len(self.tasks[0].lst) == 0
 
+    @here_is_a_test
+    def test_destroy(self):
+        # this used to give MemoryError in shadowstack tests
+        for i in range(100000):
+            self.status = 0
+            h = self.sthread.new(switchbackonce_callback,
+                                 rffi.cast(llmemory.Address, 321))
+            self.sthread.destroy(h)
+
     def any_alive(self):
         for task in self.tasks:
             if task.h:
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to