[pypy-commit] pypy stm-thread: Workaround.

arigo noreply at buildbot.pypy.org
Sun Jun 10 18:01:44 CEST 2012


Author: Armin Rigo <arigo at tunes.org>
Branch: stm-thread
Changeset: r55548:38eb1fbc3c8d
Date: 2012-06-10 17:57 +0200
http://bitbucket.org/pypy/pypy/changeset/38eb1fbc3c8d/

Log:	Workaround.

diff --git a/pypy/rpython/memory/gctransform/framework.py b/pypy/rpython/memory/gctransform/framework.py
--- a/pypy/rpython/memory/gctransform/framework.py
+++ b/pypy/rpython/memory/gctransform/framework.py
@@ -1316,7 +1316,11 @@
         fptr = self.transformer.annotate_finalizer(ll_finalizer,
                 [llmemory.Address, llmemory.Address], llmemory.Address)
         g = destrptr._obj.graph
-        light = not FinalizerAnalyzer(self.translator).analyze_light_finalizer(g)
+        if self.translator.config.translation.stm:
+            light = False    # XXX no working finalizers with STM so far
+        else:
+            analyzer = FinalizerAnalyzer(self.translator)
+            light = not analyzer.analyze_light_finalizer(g)
         return fptr, light
 
     def make_custom_trace_funcptr_for_type(self, TYPE):


More information about the pypy-commit mailing list