[pypy-commit] pypy concurrent-marksweep: fix. now test_direct passes

arigo noreply at buildbot.pypy.org
Sat Jan 7 19:08:41 CET 2012


Author: Armin Rigo <arigo at tunes.org>
Branch: concurrent-marksweep
Changeset: r51121:2a11fde484ba
Date: 2012-01-07 19:08 +0100
http://bitbucket.org/pypy/pypy/changeset/2a11fde484ba/

Log:	fix. now test_direct passes

diff --git a/pypy/rpython/memory/gc/concurrentgen.py b/pypy/rpython/memory/gc/concurrentgen.py
--- a/pypy/rpython/memory/gc/concurrentgen.py
+++ b/pypy/rpython/memory/gc/concurrentgen.py
@@ -269,6 +269,8 @@
         hdr = self.header(obj)
         hdr.tid = self.combine(typeid, self.current_young_marker, 0)
         hdr.next = self.new_young_objects
+        totalsize = llarena.round_up_for_allocation(totalsize)
+        rawtotalsize = raw_malloc_usage(totalsize)
         debug_print("malloc:", rawtotalsize, obj)
         self.new_young_objects = hdr
         self.new_young_objects_size += r_uint(rawtotalsize)


More information about the pypy-commit mailing list