Re: garbage collecting modules & nffi/threads
John Reppy <[email protected]>
| Newsgroups | gmane.comp.lang.sml.smlnj |
|---|---|
| Message-ID | <[email protected]> |
Code objects are garbage collected if there are no references to them. Currently, the FFI mechanism does not support callbacks into ML, but if it did, we would have to keep track of pointers to callbacks that have been exported to the C world (the GC already has a mechanism for this sort of thing). - John On Aug 25, 2004, at 1:37 PM, Matthias Kretschmer wrote: > Hello > > 1. I would like to know if modules (and code) gets garbage collected > if no reference to data in the module is available anymore to the > current running code (e.g. running the runtime environment with the > compiler and using it to install new module versions on the fly - of > course with proper upgrade handling specialized by the module in some > way). > > 2. Are there any problems with threaded foreign code? What is about > callback functions that get invoked by foreign code from within > another thread? > > Thanks, > Matthias Kretschmer > > > > ------------------------------------------------------- > SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media > 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 > Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. > http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 > _______________________________________________ > Smlnj-list mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/smlnj-list > ------------------------------------------------------- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285