[pypy-commit] pypy default: Fix the old 'generation' GC to not use env.estimate_best_nursery_size()

arigo noreply at buildbot.pypy.org
Wed Feb 22 18:47:21 CET 2012


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r52767:0d3e428250f8
Date: 2012-02-22 18:47 +0100
http://bitbucket.org/pypy/pypy/changeset/0d3e428250f8/

Log:	Fix the old 'generation' GC to not use
	env.estimate_best_nursery_size() any more.

diff --git a/pypy/rpython/memory/gc/generation.py b/pypy/rpython/memory/gc/generation.py
--- a/pypy/rpython/memory/gc/generation.py
+++ b/pypy/rpython/memory/gc/generation.py
@@ -41,8 +41,8 @@
 
     # the following values override the default arguments of __init__ when
     # translating to a real backend.
-    TRANSLATION_PARAMS = {'space_size': 8*1024*1024, # XXX adjust
-                          'nursery_size': 896*1024,
+    TRANSLATION_PARAMS = {'space_size': 8*1024*1024,     # 8 MB
+                          'nursery_size': 3*1024*1024,   # 3 MB
                           'min_nursery_size': 48*1024,
                           'auto_nursery_size': True}
 
@@ -92,8 +92,9 @@
         # the GC is fully setup now.  The rest can make use of it.
         if self.auto_nursery_size:
             newsize = nursery_size_from_env()
-            if newsize <= 0:
-                newsize = env.estimate_best_nursery_size()
+            #if newsize <= 0:
+            #    ---disabled--- just use the default value.
+            #    newsize = env.estimate_best_nursery_size()
             if newsize > 0:
                 self.set_nursery_size(newsize)
 


More information about the pypy-commit mailing list