Re: Rules for memory allocation and pointing

2001-11-05 Thread Benoit Cerrina
> You're conflating dead object detection with GC. Don't--the two things are > separate and if you think of them that way it makes things clearer. > > ># Well, if we use a copying GC, but never move the PMC, > ># then how are we > ># freeing these PMCs? > > The dead object detection phase notes

RE: Rules for memory allocation and pointing

2001-11-05 Thread Michael Maraist
On Mon, 5 Nov 2001, Dan Sugalski wrote: > At 12:23 AM 11/5/2001 -0800, Brent Dax wrote: > >Michael L Maraist: [reordered for clarity] > > > But I hear that we're not relying on an > > integer for > > reference counting (as with perl5), and instead are mostly > > dependant on the > > GC. > > You'

RE: Rules for memory allocation and pointing

2001-11-05 Thread Dan Sugalski
At 12:23 AM 11/5/2001 -0800, Brent Dax wrote: >Michael L Maraist: ># On Sunday 04 November 2001 02:39 pm, Dan Sugalski wrote: >My understanding is that we will pretty much only allocate PMCs out of >the arena and any buffers are allocated out of the GC region. (I could >be wrong, of course...) T

RE: Rules for memory allocation and pointing

2001-11-05 Thread Brent Dax
Michael L Maraist: # On Sunday 04 November 2001 02:39 pm, Dan Sugalski wrote: # > At 08:32 PM 11/4/2001 +0100, Benoit Cerrina wrote: # > > > There will be a mechanism to register PMCs with the # interpreter to note # > > > they're pointed to by something that the interpreter # can't reach. (For #

Re: Rules for memory allocation and pointing

2001-11-04 Thread Michael L Maraist
On Sunday 04 November 2001 02:39 pm, Dan Sugalski wrote: > At 08:32 PM 11/4/2001 +0100, Benoit Cerrina wrote: > > > There will be a mechanism to register PMCs with the interpreter to note > > > they're pointed to by something that the interpreter can't reach. (For > > > example, a structure in you

Re: Rules for memory allocation and pointing

2001-11-04 Thread Benoit Cerrina
>At 09:36 PM 11/4/2001 +0100, Benoit Cerrina wrote: > >> > While the PMC structures themselves don't move (no real need--there of >> > fixed size so you can't fragment your allocation pool, though it makes >>Sorry can you expand on this. I don't see the relation between the data >>being fixed siz

Re: Rules for memory allocation and pointing

2001-11-04 Thread Benoit Cerrina
> >- Original Message - >From: "Michael L Maraist" <[EMAIL PROTECTED]> >To: <[EMAIL PROTECTED]> >Sent: Sunday, November 04, 2001 10:10 PM >Subject: Re: Rules for memory allocation and pointing > > >On Sunday 04 November 2001 03:36 pm, Be

Re: Rules for memory allocation and pointing

2001-11-04 Thread Michael L Maraist
On Sunday 04 November 2001 03:36 pm, Benoit Cerrina wrote: > > While the PMC structures themselves don't move (no real need--there of > > fixed size so you can't fragment your allocation pool, though it makes > > Sorry can you expand on this. I don't see the relation between the data > being fixe

Re: Rules for memory allocation and pointing

2001-11-04 Thread Dan Sugalski
At 09:36 PM 11/4/2001 +0100, Benoit Cerrina wrote: > > While the PMC structures themselves don't move (no real need--there of > > fixed size so you can't fragment your allocation pool, though it makes >Sorry can you expand on this. I don't see the relation between the data >being fixed size and

Re: Rules for memory allocation and pointing

2001-11-04 Thread Benoit Cerrina
> While the PMC structures themselves don't move (no real need--there of > fixed size so you can't fragment your allocation pool, though it makes Sorry can you expand on this. I don't see the relation between the data being fixed size and the memory not becomming fragmented. > generational colle

Re: Rules for memory allocation and pointing

2001-11-04 Thread Dan Sugalski
At 08:32 PM 11/4/2001 +0100, Benoit Cerrina wrote: > > There will be a mechanism to register PMCs with the interpreter to note > > they're pointed to by something that the interpreter can't reach. (For > > example, a structure in your extension code, or via a pointer stashed in > > the depths of

Re: Rules for memory allocation and pointing

2001-11-04 Thread Benoit Cerrina
> There will be a mechanism to register PMCs with the interpreter to note > they're pointed to by something that the interpreter can't reach. (For > example, a structure in your extension code, or via a pointer stashed in > the depths of a buffer object, or referenced by another interpreter) This

Re: Rules for memory allocation and pointing

2001-11-03 Thread Dan Sugalski
At 03:19 AM 11/3/2001 -0500, Michael L Maraist wrote: >On Friday 02 November 2001 05:27 pm, Dan Sugalski wrote: >I hope rellocation can be handled efficiently. I have these images in my >head of multiple references to the same memory structure.. Relocating would >involve finding each and every re

Re: Rules for memory allocation and pointing

2001-11-02 Thread Michael L Maraist
On Friday 02 November 2001 05:27 pm, Dan Sugalski wrote: > 1) The pointer in a PMC structure may point to: > >*) Another PMC >*) A buffer object >*) Something non-tracked > > Additionally the buffer object may contain array of buffer object pointers, > or an array of PMC pointers. Flag

BIGNUM memory and questions (was Re: Rules for memory allocation and pointing)

2001-11-02 Thread Uri Guttman
> "DS" == Dan Sugalski <[EMAIL PROTECTED]> writes: DS> 2) A buffer object has the structure: DS> struct { DS>void *memory; DS>INTVAL size; DS> } some questions. i am declaring a BIGNUM struct which points to an array of BIGNUM_WORDs (longest native integer

Rules for memory allocation and pointing

2001-11-02 Thread Dan Sugalski
Okay, here's a quick draft of the rules I'm thinking of to govern memory allocation and tracking so the interpreter can GC and dead-object detect properly. 1) The pointer in a PMC structure may point to: *) Another PMC *) A buffer object *) Something non-tracked Additionally the buff