[pypy-commit] pypy stmgc-c4: Fix for running most non-stm C tests

arigo noreply at buildbot.pypy.org
Thu Sep 5 13:21:29 CEST 2013


Author: Armin Rigo <arigo at 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);


More information about the pypy-commit mailing list