[pypy-commit] pypy stmgc-c4: needed for calling clear_exception_data_on_abort, I guess..
Raemi
noreply at buildbot.pypy.org
Wed Jul 31 11:34:24 CEST 2013
Author: Remi Meier <remi.meier at gmail.com>
Branch: stmgc-c4
Changeset: r65853:f5e47c3c6884
Date: 2013-07-31 11:31 +0200
http://bitbucket.org/pypy/pypy/changeset/f5e47c3c6884/
Log: needed for calling clear_exception_data_on_abort, I guess..
diff --git a/rpython/rlib/rstm.py b/rpython/rlib/rstm.py
--- a/rpython/rlib/rstm.py
+++ b/rpython/rlib/rstm.py
@@ -18,7 +18,20 @@
def clear_exception_data_on_abort():
# XXX: provisional API just to be safe
# called by pypy/module/thread/stm:initialize_execution_context
- llop.stm_clear_exception_data_on_abort(lltype.Void)
+ pass
+
+class ClearExceptionDataOnAbort(ExtRegistryEntry):
+ _about_ = clear_exception_data_on_abort
+
+ def compute_result_annotation(self):
+ from rpython.annotator import model as annmodel
+ return annmodel.s_None
+
+ def specialize_call(self, hop):
+ hop.exception_cannot_occur()
+ return hop.genop('stm_clear_exception_data_on_abort', [],
+ resulttype=lltype.Void)
+
@dont_look_inside
def become_inevitable():
More information about the pypy-commit
mailing list