Conspiracy Theory #1
Nick Sabalausky
a at a.a
Sat Nov 21 06:24:16 PST 2009
"dsimcha" <dsimcha at yahoo.com> wrote in message
news:he6aah$4d6$1 at digitalmars.com...
> == Quote from Denis Koroskin (2korden at gmail.com)'s article
>> Aren't uint array allocations have hasPointers flag set off? I always
>> thought they aren't scanned for pointers (unlike, say, void[]).
>
> Right, but they can still be the target of false pointers. In this case,
> false
> pointers keep each instance of foo[] alive, leading to severe memory
> leaks.
I don't suppose there's a way to lookup the pointers the GC believes it has
found to a given piece of GC-ed memory? Sounds like that would be very
useful, if not essential, for debugging/optimizing memory usage.
More information about the Digitalmars-d
mailing list