Author: Armin Rigo <[email protected]>
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)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to