Author: Gregor Wegberg <[email protected]>
Branch: gc-incminimark-pinning
Changeset: r73010:09b914913112
Date: 2014-08-22 17:23 +0200
http://bitbucket.org/pypy/pypy/changeset/09b914913112/

Log:    use 'raw_malloc_usage' for calculating addresses

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
@@ -614,7 +614,7 @@
             #
             # Get the memory from the nursery.  If there is not enough space
             # there, do a collect first.
-            result = self.collect_and_reserve(totalsize)
+            result = self.collect_and_reserve(rawtotalsize)
             #
             # Build the object.
             llarena.arena_reserve(result, totalsize)
@@ -670,7 +670,7 @@
             #
             # Get the memory from the nursery.  If there is not enough space
             # there, do a collect first.
-            result = self.collect_and_reserve(totalsize)
+            result = self.collect_and_reserve(raw_malloc_usage(totalsize))
             #
             # Build the object.
             llarena.arena_reserve(result, totalsize)
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to