Re: Losing my memory - a caching problem?
Re: Losing my memory - a caching problem?
- Subject: Re: Losing my memory - a caching problem?
- From: Cem Karan <email@hidden>
- Date: Tue, 17 Aug 2010 17:42:28 -0400
On Aug 17, 2010, at 5:37 PM, Greg Parker wrote:
> On Aug 17, 2010, at 2:32 PM, Cem Karan wrote:
>> Mmm, my question is, what about Apple's code? I'll be the first to admit, I don't know enough about what goes on under the hood, so what I'm about to say may be very, very wrong (anyone out there that knows better than me, here is your cue to jump in!). Is it possible that the code that Apple supplies has GC turned on, while your code doesn't? In that case, wouldn't their code not garbage collect until its needed, or until it hits a drain statement? I haven't tested it out, but once I found out that Apple started to supply GC code, and therefore possibly GC enabled libraries, I switched to using drain instead of release for my autorelease pools, just in case...
>
> There is no "just in case" here. Garbage collection is global. Either all code in the process runs with GC, or none of it does. The application's choice is binding on all of the libraries.
>
> If you're writing a library that could be loaded into both GC- and non-GC apps, then you need to take care to write code that runs both ways. Application authors don't need to work that hard.
Cool, thank you for correcting me Greg!
As for Stuart's problem, that was the only idea I had left. Maybe Ken's suggestion will work?
Good luck,
Cem Karan_______________________________________________
Cocoa-dev mailing list (email@hidden)
Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden