Author: Armin Rigo <[email protected]>
Branch: jit-counter
Changeset: r67749:13fbd165c395
Date: 2013-10-30 19:47 +0100
http://bitbucket.org/pypy/pypy/changeset/13fbd165c395/
Log: Might help in the presence of many jitdrivers.
diff --git a/rpython/jit/metainterp/warmstate.py
b/rpython/jit/metainterp/warmstate.py
--- a/rpython/jit/metainterp/warmstate.py
+++ b/rpython/jit/metainterp/warmstate.py
@@ -413,6 +413,7 @@
green_args_spec = unrolling_iterable([('g%d' % i, TYPE)
for i, TYPE in enumerate(jitdriver_sd._green_args_spec)])
unwrap_greenkey = self.make_unwrap_greenkey()
+ random_initial_value = hash(self)
#
class JitCell(BaseJitCell):
def __init__(self, *greenargs):
@@ -432,7 +433,7 @@
@staticmethod
def get_index(*greenargs):
- x = 0
+ x = random_initial_value
i = 0
for TYPE in green_args_spec:
item = greenargs[i]
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit