[pypy-svn] pypy out-of-line-guards: I think this is necessary check. Not sure how to test it a bit :(

fijal commits-noreply at bitbucket.org
Tue Jan 18 10:50:49 CET 2011


Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: out-of-line-guards
Changeset: r40833:a0de9342ad26
Date: 2011-01-17 19:00 +0200
http://bitbucket.org/pypy/pypy/changeset/a0de9342ad26/

Log:	I think this is necessary check. Not sure how to test it a bit :(

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
@@ -169,7 +169,7 @@
     def get_entry_loop_token(self):
         if self.wref_entry_loop_token is not None:
             looptoken = self.wref_entry_loop_token()
-            if looptoken.invalidated:
+            if looptoken is not None and looptoken.invalidated:
                 self.wref_entry_loop_token = None
             else:
                 return looptoken


More information about the Pypy-commit mailing list