[prev in list] [next in list] [prev in thread] [next in thread] 

List:       pypy-svn
Subject:    [pypy-commit] pypy stmgc-c4: needed for calling clear_exception_data_on_abort, I guess..
From:       Raemi <noreply () buildbot ! pypy ! org>
Date:       2013-07-31 9:34:24
Message-ID: 20130731093424.A20BD1C054B () cobra ! cs ! uni-duesseldorf ! de
[Download RAW message or body]

Author: Remi Meier <remi.meier@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():
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
http://mail.python.org/mailman/listinfo/pypy-commit
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic