[pypy-svn] r68984 - pypy/branch/gc-jit-hack/pypy/jit/metainterp

arigo at codespeak.net arigo at codespeak.net
Thu Nov 5 11:15:46 CET 2009


Author: arigo
Date: Thu Nov  5 11:15:46 2009
New Revision: 68984

Modified:
   pypy/branch/gc-jit-hack/pypy/jit/metainterp/pyjitpl.py
Log:
The current solution I think best.  It still gives mixed
results.


Modified: pypy/branch/gc-jit-hack/pypy/jit/metainterp/pyjitpl.py
==============================================================================
--- pypy/branch/gc-jit-hack/pypy/jit/metainterp/pyjitpl.py	(original)
+++ pypy/branch/gc-jit-hack/pypy/jit/metainterp/pyjitpl.py	Thu Nov  5 11:15:46 2009
@@ -1084,6 +1084,7 @@
         warmrunnerdesc = self.warmrunnerdesc
         if warmrunnerdesc is not None and warmrunnerdesc.can_resize_nursery:
             from pypy.rpython.lltypesystem import lltype, lloperation
+            from pypy.rlib import rgc
             if enlarge:
                 newsize = 10*1024*1024         # XXX a rather custom number
                 if sys.maxint > 2147483647:
@@ -1091,6 +1092,8 @@
             else:
                 newsize = 0
             lloperation.llop.gc_resize_nursery(lltype.Void, newsize)
+            if enlarge:
+                rgc.collect(0)
 
 # ____________________________________________________________
 



More information about the Pypy-commit mailing list