[pypy-commit] lang-smalltalk default: fixed the bug that contexts which are marked returned by Smalltalk-code are not really dead...
lwassermann
noreply at buildbot.pypy.org
Wed May 22 13:44:06 CEST 2013
Author: Lars Wassermann <lars.wassermann at gmail.com>
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()
More information about the pypy-commit
mailing list