[pypy-commit] pypy default: Test fix

arigo noreply at buildbot.pypy.org
Tue Sep 30 14:34:23 CEST 2014


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r73746:90df6dfc9c89
Date: 2014-09-30 14:32 +0200
http://bitbucket.org/pypy/pypy/changeset/90df6dfc9c89/

Log:	Test fix

diff --git a/rpython/memory/gc/incminimark.py b/rpython/memory/gc/incminimark.py
--- a/rpython/memory/gc/incminimark.py
+++ b/rpython/memory/gc/incminimark.py
@@ -787,8 +787,9 @@
             # and clear these bytes.
             i = 0
             while i < cardheadersize:
-                llarena.arena_reserve(arena + i, llmemory.sizeof(lltype.Char))
-                arena.char[i] = '\x00'
+                p = arena + i
+                llarena.arena_reserve(p, llmemory.sizeof(lltype.Char))
+                p.char[0] = '\x00'
                 i += 1
             #
             # Reserve the actual object.  (This is a no-op in C).


More information about the pypy-commit mailing list