Author: Armin Rigo <ar...@tunes.org> Branch: Changeset: r281:84b179a63ac1 Date: 2013-06-25 17:01 +0200 http://bitbucket.org/pypy/stmgc/changeset/84b179a63ac1/
Log: fixes fixes diff --git a/duhton/Makefile b/duhton/Makefile --- a/duhton/Makefile +++ b/duhton/Makefile @@ -5,7 +5,7 @@ gcc -lrt -pthread -g -O2 -o duhton *.c ../c4/stmgc.c -Wall duhton_debug: *.c *.h ../c4/*.c ../c4/*.h - gcc -lrt -pthread -g -DDu_DEBUG -o duhton_debug *.c ../c4/stmgc.c -Wall + gcc -lrt -pthread -g -DDu_DEBUG -D_GC_DEBUG=2 -DGC_NURSERY=2048 -o duhton_debug *.c ../c4/stmgc.c -Wall clean: rm -f duhton duhton_debug diff --git a/duhton/compile.c b/duhton/compile.c --- a/duhton/compile.c +++ b/duhton/compile.c @@ -33,7 +33,9 @@ goto done; case '(': + _du_save1(list); item = _Du_Parse(f, level + 1, 0); + _du_restore1(list); c = fgetc(f); break; @@ -69,12 +71,14 @@ } while (!(isspace(c) || c == '(' || c == ')' || c == EOF)); *p = '\0'; number = strtol(token, &end, 0); + _du_save1(list); if (*end == '\0') { item = DuInt_FromInt(number); } else { item = DuSymbol_FromString(token); } + _du_restore1(list); break; } } diff --git a/duhton/listobject.c b/duhton/listobject.c --- a/duhton/listobject.c +++ b/duhton/listobject.c @@ -75,7 +75,10 @@ _du_read1(olditems); int i, newcount = olditems->ob_count + 1; + + _du_save3(ob, x, olditems); DuTupleObject *newitems = DuTuple_New(newcount); + _du_restore3(ob, x, olditems); for (i=0; i<newcount-1; i++) newitems->ob_items[i] = olditems->ob_items[i]; _______________________________________________ pypy-commit mailing list pypy-commit@python.org http://mail.python.org/mailman/listinfo/pypy-commit