[pypy-commit] pypy default: Remove an exception never raised
arigo
noreply at buildbot.pypy.org
Wed Feb 18 19:34:02 CET 2015
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r75986:d7777f2ccd3f
Date: 2015-02-18 19:33 +0100
http://bitbucket.org/pypy/pypy/changeset/d7777f2ccd3f/
Log: Remove an exception never raised
diff --git a/rpython/jit/metainterp/compile.py b/rpython/jit/metainterp/compile.py
--- a/rpython/jit/metainterp/compile.py
+++ b/rpython/jit/metainterp/compile.py
@@ -749,18 +749,14 @@
rstack._stack_criticalcode_stop()
def handle_async_forcing(self, deadframe):
- from rpython.jit.metainterp.resume import (force_from_resumedata,
- AlreadyForced)
+ from rpython.jit.metainterp.resume import force_from_resumedata
metainterp_sd = self.metainterp_sd
vinfo = self.jitdriver_sd.virtualizable_info
ginfo = self.jitdriver_sd.greenfield_info
# there is some chance that this is already forced. In this case
# the virtualizable would have a token = NULL
- try:
- all_virtuals = force_from_resumedata(metainterp_sd, self, deadframe,
- vinfo, ginfo)
- except AlreadyForced:
- return
+ all_virtuals = force_from_resumedata(metainterp_sd, self, deadframe,
+ vinfo, ginfo)
# The virtualizable data was stored on the real virtualizable above.
# Handle all_virtuals: keep them for later blackholing from the
# future failure of the GUARD_NOT_FORCED
diff --git a/rpython/jit/metainterp/resume.py b/rpython/jit/metainterp/resume.py
--- a/rpython/jit/metainterp/resume.py
+++ b/rpython/jit/metainterp/resume.py
@@ -19,9 +19,6 @@
# because it needs to support optimize.py which encodes virtuals with
# arbitrary cycles and also to compress the information
-class AlreadyForced(Exception):
- pass
-
class Snapshot(object):
__slots__ = ('prev', 'boxes')
More information about the pypy-commit
mailing list