Author: Armin Rigo <[email protected]>
Branch: stm-gc
Changeset: r54760:fb0b57f3fed1
Date: 2012-04-25 22:57 +0200
http://bitbucket.org/pypy/pypy/changeset/fb0b57f3fed1/

Log:    Add an assert.

        Status update: seems that pypy-stm running translate.py works now.
        :-)

diff --git a/pypy/rpython/memory/gc/stmtls.py b/pypy/rpython/memory/gc/stmtls.py
--- a/pypy/rpython/memory/gc/stmtls.py
+++ b/pypy/rpython/memory/gc/stmtls.py
@@ -413,6 +413,8 @@
             # detect_flag_combination is GCFLAG_WAS_COPIED|GCFLAG_VISITED.
             # This case is to force pointers to the LOCAL copy to be
             # replaced with pointers to the GLOBAL copy.
+            ll_assert(not self.in_main_thread,
+                      "unexpected flag combination in the main thread")
             return 2
 
         if can_be_in_nursery and self.is_in_nursery(obj):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to