You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
CoCo don't have garbage collection currently, so we have memory leak.
The PyObject.refCount may help if we call incRef,decRef when we need copy or delete PyObject.
But if we have circular reference, refCount won't work.
So we need GC strategy which can handle circular references. I'm trying to use Recycler:
[1] "A Pure Reference Counting Garbage Collector", 2001, Bacon, D. F., Attanasio, C. R., Rajan, V. T., Smith, S. E., & LEE, H.
This repository is for teaching and is an incomplete version of CoCo. A more robust JCoCo version written in Java is available. And, if C++ is your language, a more robust C++ version is available to college/university professors. If you are a college or university professor you can contact me at [email protected] and I will give you access to the full version of CoCo. In this student version which is used as the basis of assignments, garbage collection is not implemented.
CoCo don't have garbage collection currently, so we have memory leak.
The PyObject.refCount may help if we call incRef,decRef when we need copy or delete PyObject.
But if we have circular reference, refCount won't work.
So we need GC strategy which can handle circular references. I'm trying to use Recycler:
[1] "A Pure Reference Counting Garbage Collector", 2001, Bacon, D. F., Attanasio, C. R., Rajan, V. T., Smith, S. E., & LEE, H.
https://github.com/thrunduil/cyclic_rc
The text was updated successfully, but these errors were encountered: