Re: Calling call_atexit() to clean up stuff initialized in BOOT

2009-03-19 Thread Nicholas Clark
On Thu, Mar 12, 2009 at 01:15:46PM +0100, Gregor Goldbach wrote: > Nicholas Clark wrote: > > >>> I understand initialization of an XS module may be modified using > >>> BOOT. > >>> However, there seems to be no counterpart of BOOT. How do I e.g. free > >>> memory I allocated in BOOT? > [...] > >

Re: Calling call_atexit() to clean up stuff initialized in BOOT

2009-03-19 Thread Gregor Goldbach
Steve Fink wrote: >> [perl objects] >> >>> Yes, but perl objects are going to be cleaned up (or at least, any with >>> DESTROY methods are going to get it called) before then, so that's somewhat >>> a red herring. >>> >>> But possibly also a solution - anything allocated in BOOT that is stashed >>

Re: Calling call_atexit() to clean up stuff initialized in BOOT

2009-03-19 Thread Steve Fink
On Thu, Mar 12, 2009 at 5:15 AM, Gregor Goldbach wrote: > Nicholas Clark wrote: > I understand initialization of an XS module may be modified using BOOT. However, there seems to be no counterpart of BOOT. How do I e.g. free memory I allocated in BOOT? > [...] Or is the cur

Re: Calling call_atexit() to clean up stuff initialized in BOOT

2009-03-12 Thread Gregor Goldbach
Nicholas Clark wrote: >>> I understand initialization of an XS module may be modified using >>> BOOT. >>> However, there seems to be no counterpart of BOOT. How do I e.g. free >>> memory I allocated in BOOT? [...] >>> Or is the current practice to write an XS function that e.g. frees the >>> mem

Re: Calling call_atexit() to clean up stuff initialized in BOOT

2009-03-12 Thread Gregor Goldbach
muppet wrote: >> I understand initialization of an XS module may be modified using BOOT. >> However, there seems to be no counterpart of BOOT. How do I e.g. free >> memory I allocated in BOOT? [..] >> Or is the current practice to write an XS function that e.g. frees the >> memory allocate at BOOT

Re: Calling call_atexit() to clean up stuff initialized in BOOT

2009-03-12 Thread Nicholas Clark
On Wed, Mar 11, 2009 at 07:28:34PM -0400, muppet wrote: > > On Mar 11, 2009, at 5:58 AM, Gregor Goldbach wrote: > > >Hi everyone, > > > >I understand initialization of an XS module may be modified using > >BOOT. > >However, there seems to be no counterpart of BOOT. How do I e.g. free > >memory

Re: Calling call_atexit() to clean up stuff initialized in BOOT

2009-03-11 Thread muppet
On Mar 11, 2009, at 5:58 AM, Gregor Goldbach wrote: Hi everyone, I understand initialization of an XS module may be modified using BOOT. However, there seems to be no counterpart of BOOT. How do I e.g. free memory I allocated in BOOT? Is it okay to call call_atexit() for this purpose? Dyna