[pypy-commit] pypy jit-multilabel: avoiding confusion from rare hash collisions

hakanardo noreply at buildbot.pypy.org
Wed Dec 21 14:25:43 CET 2011


Author: Hakan Ardo <hakan at debian.org>
Branch: jit-multilabel
Changeset: r50796:707ec0f104cd
Date: 2011-12-21 11:44 +0100
http://bitbucket.org/pypy/pypy/changeset/707ec0f104cd/

Log:	avoiding confusion from rare hash collisions

diff --git a/pypy/jit/metainterp/history.py b/pypy/jit/metainterp/history.py
--- a/pypy/jit/metainterp/history.py
+++ b/pypy/jit/metainterp/history.py
@@ -707,7 +707,7 @@
         self.exported_state = None
 
     def repr_of_descr(self):
-        return 'TargetToken(%d)' % compute_identity_hash(self)
+        return 'TargetToken(%d)' % compute_unique_id(self)
         
 class TreeLoop(object):
     inputargs = None


More information about the pypy-commit mailing list