iPhone vs Android
Shachar Shemesh via Digitalmars-d
digitalmars-d at puremagic.com
Tue Sep 13 22:38:38 PDT 2016
On 14/09/16 02:59, Walter Bright wrote:
>
> Memory allocated with malloc() is unknown to the GC. This works fine
> unless a reference to the GC memory is inserted into malloc'd data,
> which is why there's an API to the GC to let it know about such things.
>
But if you do want to allow it, then my original problem comes back. You
have to scan the malloced memory because you are not sure where that
memory might contain pointers to GC managed memory.
And the hybrid hybrid approach (i.e. - only some of the memory allocated
by malloc is scanned) is a wasp nest of potential bugs and problems.
Shachar
More information about the Digitalmars-d
mailing list