* Ken Williams ([EMAIL PROTECTED]) [02 Sep 2002 15:48]: > On Monday, September 2, 2002, at 11:35 AM, Sisyphus wrote: [...] > > Someone posted the recommendation that 'New()' and 'Safefree()' be > > used instead, and I've been using them with no trouble.
> You could be right - I wasn't sure whether New() and Safefree() would > work properly with both -Dusemymalloc and without it. Is it safe in > both situations? As I understand it, New() and Safefree() [and Renew()] will do whatever's appropriate in order to make things as reliable as can be. malloc, free, realloc could do anything. Depending on system, colour of moon, etc. In XS/Inline, use the Perl functions. They'll work out whether they're using the system malloc, a custom malloc, and treat everything appropriately carefully. If they fail, then you're screwed. Of course, that's my interpretation, and I could well be wrong. cheers, -- Iain.