On 2012-10-19 08:48, Alex Rønne Petersen wrote:
How does it deal with the problem where a pointer in TLS points to
global data, or worse yet, a pointer in the global heap points to TLS?
I'm pretty sure it can't without doing a full pass over the entire heap,
which seems to me like it defeats the purpose.
But I may just be missing out on some restriction (type system or
whatever) Objective-C has that makes it feasible.
I'm not sure how this is handled. But the GC is only used for the
Objective-C allocations, i.e. [NSObject alloc] and not for C
allocations, i.e. "malloc".
--
/Jacob Carlborg