[pypy-svn] r77183 - pypy/trunk/pypy/rpython/memory/gc

arigo at codespeak.net arigo at codespeak.net
Mon Sep 20 09:36:53 CEST 2010


Author: arigo
Date: Mon Sep 20 09:36:52 2010
New Revision: 77183

Modified:
   pypy/trunk/pypy/rpython/memory/gc/minimark.py
Log:
Fix the failing tests.


Modified: pypy/trunk/pypy/rpython/memory/gc/minimark.py
==============================================================================
--- pypy/trunk/pypy/rpython/memory/gc/minimark.py	(original)
+++ pypy/trunk/pypy/rpython/memory/gc/minimark.py	Mon Sep 20 09:36:52 2010
@@ -358,6 +358,7 @@
 
 
     def _full_collect_if_needed(self, reserving_size):
+        reserving_size = llmemory.raw_malloc_usage(reserving_size)
         if (float(self.get_total_memory_used()) + reserving_size >
                 self.next_major_collection_threshold):
             self.minor_collection()



More information about the Pypy-commit mailing list