[pypy-commit] pypy stmgc-c7: Temporarily ignore the @must_be_light_finalizer if it causes troubles

arigo noreply at buildbot.pypy.org
Wed Nov 12 16:09:38 CET 2014


Author: Armin Rigo <arigo at tunes.org>
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
 


More information about the pypy-commit mailing list