Author: Remi Meier <remi.me...@gmail.com> Branch: Changeset: r480:e1a459d18ba1 Date: 2013-08-15 18:26 +0200 http://bitbucket.org/pypy/stmgc/changeset/e1a459d18ba1/
Log: other test diff --git a/c4/test/test_extra.py b/c4/test/test_extra.py --- a/c4/test/test_extra.py +++ b/c4/test/test_extra.py @@ -167,6 +167,16 @@ assert p1o == ffi.cast("gcptr", pid) assert follow_original(p1o) == ffi.NULL - +def test_bug2(): + p = oalloc(HDR+WORD) + + def cb(c): + if c == 0: + pw = lib.stm_write_barrier(p) + abort_and_retry() + lib.stm_push_root(p) + perform_transaction(cb) + p = lib.stm_pop_root() + assert follow_original(p) == ffi.NULL _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit