Author: Armin Rigo <ar...@tunes.org> Branch: stm-gc Changeset: r54482:1bb21a8ad460 Date: 2012-04-17 19:23 +0200 http://bitbucket.org/pypy/pypy/changeset/1bb21a8ad460/
Log: A failing test. diff --git a/pypy/rpython/memory/gc/test/test_stmgc.py b/pypy/rpython/memory/gc/test/test_stmgc.py --- a/pypy/rpython/memory/gc/test/test_stmgc.py +++ b/pypy/rpython/memory/gc/test/test_stmgc.py @@ -370,6 +370,16 @@ sr2.s1 = t self.gc.commit_transaction() + def test_commit_with_ref_to_local_copy(self): + tr, tr_adr = self.malloc(SR) + self.select_thread(1) + sr_adr = self.gc.stm_writebarrier(tr_adr) + assert sr_adr != tr_adr + sr = llmemory.cast_adr_to_ptr(sr_adr, lltype.Ptr(SR)) + sr.sr2 = sr + self.gc.commit_transaction() + assert sr.sr2 == tr + def test_commit_transaction_no_references(self): py.test.skip("rewrite me") s, s_adr = self.malloc(S) _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit