[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: C++ extension and garbage collection



On Wed, 27 Mar 2002, Matthew Flatt wrote:
> > Why are new structures collected, but not new classes?
> > From gdb it appears the same new is used.
>
> I'm not sure. Could it just be the timing of collections? (The pointer
> to a Pad_HashTable happens to be in a register or on the stack?)

Yes, must be timing.  I created a simple extension which news a struct
and a class.  Both get collected (zeroed).  Bummer.  I was hoping for
some difference I could exploit.

Thanks,

Ron
stanonik@cogsci.ucsd.edu