Closed
Description
Possible solutions include
- using
weakref.finalize()
(as you also suggested)- cythonize everything, make all classes
cdef
'd, and switch from__del__
to__dealloc__
- using a lightweight shutdown detection hack (see, e.g., Memory Leak in libllvmlite.so when using Numba numba/numba#9731 (comment) and numba/llvmlite@7347d77)
Originally posted by @leofang in #87 (comment)