[Openmcl-devel] Garbage collector - ccl:terminate (memory stuff)

Ron Garret ron at flownet.com
Sat May 4 08:37:52 PDT 2024



> On May 4, 2024, at 8:27 AM, Grégory Vanuxem <g.vanuxem at gmail.com> wrote:
> 
> In CL I only keep a reference to this Julia object in a very small CL
> class instance that contains the Julia type and the Julia hashtable
> reference key.
> 
> After, the CCL GC does its job, but **my problem here**, see this
> discussion before, CCL:terminate is never called.

My guess is you need to use a weak hash table:

https://ccl.clozure.com/docs/ccl.html#weak-references <https://ccl.clozure.com/docs/ccl.html#weak-references>

rg

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.clozure.com/pipermail/openmcl-devel/attachments/20240504/e3df801c/attachment.htm>


More information about the Openmcl-devel mailing list