Author: Lars Wassermann <[email protected]>
Branch: 
Changeset: r402:76af22274477
Date: 2013-05-22 13:43 +0200
http://bitbucket.org/pypy/lang-smalltalk/changeset/76af22274477/

Log:    fixed the bug that contexts which are marked returned by Smalltalk-
        code are not really dead...

diff --git a/spyvm/shadow.py b/spyvm/shadow.py
--- a/spyvm/shadow.py
+++ b/spyvm/shadow.py
@@ -552,11 +552,12 @@
 
     def store_unwrap_pc(self, w_pc):
         if w_pc.is_same_object(self.space.w_nil):
-            return
-        pc = self.space.unwrap_int(w_pc)
-        pc -= self.s_method().bytecodeoffset
-        pc -= 1
-        self.store_pc(pc)
+            self.store_pc(-1)
+        else:
+            pc = self.space.unwrap_int(w_pc)
+            pc -= self.s_method().bytecodeoffset
+            pc -= 1
+            self.store_pc(pc)
 
     def wrap_pc(self):
         pc = self.pc()
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to