Author: Armin Rigo <[email protected]>
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
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit