Author: Armin Rigo <ar...@tunes.org> Branch: stmgc-c4 Changeset: r66792:596a596bbd85 Date: 2013-09-05 13:20 +0200 http://bitbucket.org/pypy/pypy/changeset/596a596bbd85/
Log: Fix for running most non-stm C tests diff --git a/rpython/translator/c/src/rtyper.c b/rpython/translator/c/src/rtyper.c --- a/rpython/translator/c/src/rtyper.c +++ b/rpython/translator/c/src/rtyper.c @@ -16,7 +16,9 @@ char *RPyString_AsCharP(RPyString *rps) { +#ifdef RPY_STM rps = (RPyString *)stm_read_barrier((gcptr)rps); +#endif Signed len = RPyString_Size(rps); struct _RPyString_dump_t *dump = \ malloc(sizeof(struct _RPyString_dump_t) + len); _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit