Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fhdl/namer: do not reference objects with __del__ methods to avoid un…

…collectable cycles
  • Loading branch information...
commit 7230508e7cbcc783c302de1f0a05405d20487a29 1 parent 2c375e9
Sébastien Bourdeauducq sbourdeauducq authored
Showing with 2 additions and 0 deletions.
  1. +2 −0  migen/fhdl/
2  migen/fhdl/
@@ -34,6 +34,8 @@ def trace_back(name=None):
obj = frame.f_locals["self"]
except KeyError:
obj = None
+ if obj is not None and hasattr(obj, "__del__"):
+ obj = None
if obj is None:
modules = frame.f_globals["__name__"]
modules = modules.split(".")
Please sign in to comment.
Something went wrong with that request. Please try again.