Re: Garbage collector - ccl:terminate (memory stuff)
Grégory Vanuxem <[email protected]> Sat, 4 May 2024 17:53:07 +0200
| Newsgroups | gmane.lisp.openmcl.devel |
|---|---|
| Message-ID | <CAHnU2db0p5u-wHVxaCv=ftGVaYi90zhS_o3F+KZDQQDKexhPXg@mail.gmail.com> |
--000000000000befc9a0617a2d5d7 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Thanks for the tip! I will quickly try this, I remember someone tell me that here, you I presume. I just leave it in my head for later use. I will now try this. I will be back! =F0=9F=98=89 Le sam. 4 mai 2024 =C3=A0 17:37, Ron Garret <[email protected]> a =C3=A9crit = : > > > On May 4, 2024, at 8:27 AM, Gr=C3=A9gory Vanuxem <[email protected]> wr= ote: > > 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 > > rg > > --000000000000befc9a0617a2d5d7 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <div dir=3D"auto">Thanks for the tip! I will quickly try this, I remember s= omeone tell me that here, you I presume. I just leave it in my head for lat= er use. I will now try this.</div><div dir=3D"auto"><br></div><div dir=3D"a= uto">I will be back! =F0=9F=98=89</div><div><br><div class=3D"gmail_quote">= <div dir=3D"ltr" class=3D"gmail_attr">Le=C2=A0sam. 4 mai 2024 =C3=A0 17:37,= Ron Garret <<a href=3D"mailto:[email protected]">[email protected]</a>> = a =C3=A9crit=C2=A0:<br></div><blockquote class=3D"gmail_quote" style=3D"mar= gin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;padding= -left:1ex;border-left-color:rgb(204,204,204)"><div style=3D"line-break:afte= r-white-space"><br><div><br><blockquote type=3D"cite"><div>On May 4, 2024, = at 8:27 AM, Gr=C3=A9gory Vanuxem <<a href=3D"mailto:[email protected]"= target=3D"_blank">[email protected]</a>> wrote:</div><div><div><br>In= CL I only keep a reference to this Julia object in a very small CL<br>clas= s instance that contains the Julia type and the Julia hashtable<br>referenc= e key.<br><br>After, the CCL GC does its job, but **my problem here**, see = this<br>discussion before, CCL:terminate is never called.</div></div></bloc= kquote><div><br></div><div>My guess is you need to use a weak hash table:</= div><div><br></div><div><a href=3D"https://ccl.clozure.com/docs/ccl.html#we= ak-references" target=3D"_blank">https://ccl.clozure.com/docs/ccl.html#weak= -references</a></div></div></div><div style=3D"line-break:after-white-space= "><div><div><br></div><div>rg</div><div><br></div></div></div></blockquote>= </div></div> --000000000000befc9a0617a2d5d7--