large objects and GC

Fawzi Mohamed fmohamed at mac.com
Sat May 17 01:09:35 PDT 2008


On 2008-05-16 23:55:08 +0200, BCS <ao at pathlink.com> said:

> Reply to Fawzi,
> 
>> To have internal pointers one should also keep a pointer to the base
>> object.
> 
> So in effect, only a pointer the the start of the block counts. 
> Anything else is just ignored.

exactly that's the gist of the idea, and would let one use almost 
normal gc allocated memory instead of manually managed one.
This behavior would kick in just if the gc decides that the object 
should get a pool for himself (obviously the object of that kind should 
*always* be treated as if they had a pool for themselves and would need 
a pointer to their base).

> Just making sure I'm understanding you correctly. (I think this is 
> worth exploring, but I don't known how good it will be)

good, I am just telling it here to see if I missed something basic, or 
it is worth exploring (and maybe someone more knowledgeable in the gc, 
does it for me ;).

Fawzi




More information about the Digitalmars-d mailing list