Garbage collector memory leak "feature"?
BLS
nanali at nospam-wanadoo.fr
Thu Oct 11 07:13:36 PDT 2007
Sean Kelly schrieb:
> David Brown wrote:
>>
>> I'm not sure I understand why these restrictions aren't possible under D.
>> They might not be possible with the current implementation, but I didn't
>> see anything in the language spec that requires inexactness to the GC.
>>
>> It might not meet some performance or other memory requirements some
>> users
>> have, but it should be possible to make the GC exact.
>
> With one stipulation, I believe this could be true of blocks allocated
> by the GC. Type information could be supplied by the runtime, etc, to
> allow exact scanning. The stipulation being that D users may have a
> desire or a need to occasionally allocate untyped memory blocks, such as
> void[]. In these cases, conservative scanning would be necessary.
>
> However, that still leaves the stack as an unknown element. At present,
> the GC doesn't know anything about what a pointer-sized stack value
> represents, and I don't see how this could be communicated or
> determined. But perhaps this is just a gap in my knowledge of GC theory.
>
>
> Sean
Hi Sean,
Even if slightly off topic I guess you will find it /interesting/
It is about a /third/ way to implement GC
One reference only, (ORO) memory management)
Third way means : Not a mark-and-sweep, not a reference-counting GC
http://newlisp.org/MemoryManagement.html
Bjoern
More information about the Digitalmars-d
mailing list