[pypy-svn] pypy jit-virtual_state: warmrunnerdesc seems immutable when translated? Is this a suitable place to store this param?

hakanardo commits-noreply at bitbucket.org
Wed Feb 9 17:19:36 CET 2011


Author: Hakan Ardo <hakan at debian.org>
Branch: jit-virtual_state
Changeset: r41743:d3d58ea58c80
Date: 2011-02-09 17:18 +0100
http://bitbucket.org/pypy/pypy/changeset/d3d58ea58c80/

Log:	warmrunnerdesc seems immutable when translated? Is this a suitable
	place to store this param?

diff --git a/pypy/jit/metainterp/optimizeopt/unroll.py b/pypy/jit/metainterp/optimizeopt/unroll.py
--- a/pypy/jit/metainterp/optimizeopt/unroll.py
+++ b/pypy/jit/metainterp/optimizeopt/unroll.py
@@ -674,7 +674,7 @@
                 retraced_count = len(short)
                 if descr.failed_states:
                     retraced_count += len(descr.failed_states)
-                limit = self.optimizer.metainterp_sd.warmrunnerdesc.retrace_limit
+                limit = self.optimizer.metainterp_sd.warmrunnerdesc.memory_manager.retrace_limit
                 if not self.retraced and retraced_count<limit:
                     if not descr.failed_states:
                         raise RetraceLoop

diff --git a/pypy/jit/metainterp/warmstate.py b/pypy/jit/metainterp/warmstate.py
--- a/pypy/jit/metainterp/warmstate.py
+++ b/pypy/jit/metainterp/warmstate.py
@@ -243,7 +243,7 @@
 
     def set_param_retrace_limit(self, value):
         if self.warmrunnerdesc:
-            self.warmrunnerdesc.retrace_limit = value
+            self.warmrunnerdesc.memory_manager.retrace_limit = value
 
     def disable_noninlinable_function(self, greenkey):
         cell = self.jit_cell_at_key(greenkey)


More information about the Pypy-commit mailing list