1. Christopher Lambacher
  2. pypy


Alex Gaynor  committed e4e34dd

Fix for translation, not everything has a func (why? I don't know). With this patch it actually seems to fix my deadlock. I get some other weird error though. Somehow that seems better.

  • Participants
  • Parent commits ce8caa1
  • Branches release-gil-flush-heapcache

Comments (0)

Files changed (1)

File pypy/jit/codewriter/effectinfo.py

View file
  • Ignore whitespace
 class CanReleaseGILAnalyzer(BoolGraphAnalyzer):
     def analyze_direct_call(self, graph, seen=None):
         releases_gil = False
-        if hasattr(graph.func, "_ptr"):
+        if hasattr(graph, "func") and hasattr(graph.func, "_ptr"):
             releases_gil = graph.func._ptr._obj.releases_gil
         return releases_gil or super(CanReleaseGILAnalyzer, self).analyze_direct_call(graph, seen)