Author: Armin Rigo <[email protected]>
Branch: stmgc-c7
Changeset: r74481:eb9446d4bb2d
Date: 2014-11-12 15:21 +0100
http://bitbucket.org/pypy/pypy/changeset/eb9446d4bb2d/

Log:    Temporarily ignore the @must_be_light_finalizer if it causes
        troubles for STM

diff --git a/rpython/translator/backendopt/finalizer.py 
b/rpython/translator/backendopt/finalizer.py
--- a/rpython/translator/backendopt/finalizer.py
+++ b/rpython/translator/backendopt/finalizer.py
@@ -24,6 +24,12 @@
         result = self.analyze_direct_call(graph)
         if (result is self.top_result() and
             getattr(graph.func, '_must_be_light_finalizer_', False)):
+            # XXX temporary
+            if self.translator.config.translation.stm:
+                from rpython.memory.gctransform.log import log
+                log.WARNING("%s: %r" % (FinalizerError.__doc__, graph))
+                return result
+            #
             raise FinalizerError(FinalizerError.__doc__, graph)
         return result
 
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to