iPhone vs Android

Walter Bright via Digitalmars-d digitalmars-d at puremagic.com
Tue Sep 13 16:59:14 PDT 2016


On 9/13/2016 4:59 AM, Shachar Shemesh wrote:
> Here's my worries about the hybrid approach. The GC run time is proportional not
> to the amount of memory you manage with the GC, but to the amount of memory that
> might hold a pointer to a GC managed memory. In other words, if most of my
> memory is RC managed, but some of it is GC, I pay the price of both memory
> manager on most of my memory.

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.



More information about the Digitalmars-d mailing list