[pypy-commit] pypy minimark-noclear: Simplify this code, for test_transformed_gc.

arigo noreply at buildbot.pypy.org
Sun Aug 26 23:02:13 CEST 2012


Author: Armin Rigo <arigo at tunes.org>
Branch: minimark-noclear
Changeset: r56877:24834a1eec6f
Date: 2012-08-26 23:01 +0200
http://bitbucket.org/pypy/pypy/changeset/24834a1eec6f/

Log:	Simplify this code, for test_transformed_gc.

diff --git a/pypy/rpython/memory/gc/minimark.py b/pypy/rpython/memory/gc/minimark.py
--- a/pypy/rpython/memory/gc/minimark.py
+++ b/pypy/rpython/memory/gc/minimark.py
@@ -502,12 +502,7 @@
             #
             # Build the object.
             if clear:
-                if we_are_translated():
-                    llarena.arena_reset(result + llmemory.sizeof(self.HDR),
-                                        totalsize - llmemory.sizeof(self.HDR),
-                                        2)    # don't need to zero out .tid
-                else:
-                    llarena.arena_reset(result, totalsize, 2)
+                llarena.arena_reset(result, totalsize, 2)
             llarena.arena_reserve(result, totalsize)
             obj = result + size_gc_header
             if is_finalizer_light:


More information about the pypy-commit mailing list