FFI Memory Management
Andreas Raab
andreas.raab at gmx.de
Sun Aug 20 04:03:54 UTC 2006
> I was just cleaning up after FFI when I noticed that there were external
> addresses still allocated. Looking at the method Parser >>
> externalFunctionDeclaration it appears that the issue is
> ExternalLibraryFunction instances with live handles created by the
> parser. Is there a particular way that I should go about cleaning this
> up, or should I run through and find my own instance and free them?
No you shouldn't. ExternalFunctions can't be "freed" that way since
their handle do not signify allocated memory but rather the address of
the function itself. Note that all ExternalAddresses get cleared upon
system startup anyway (e.g., reset to NULL) so there isn't anything you
need to do.
Cheers,
- Andreas
More information about the Squeak-dev
mailing list
|