On Tue, Oct 13, 2009 at 2:14 AM, Nick Rogers <roger...@mac.com> wrote: > Hi, > I'm using Snow Leopard and Xcode 3.2. > When my program runs the VM grows from 50MB to around 550MB. > So when I release the memory, should VM shrink to the original 50MB, in this > case it isn't so?
No, in most cases, it won't shrink. Most of the time, when you free memory, it is returned to a pool within your application for use in future allocations, but not returned to the OS (so it remains mapped into your application's VM space). If, whatever you're doing with that memory is repeatable, and the memory continues to grow significantly each time you repeat, then you may have a leak, otherwise, it's just business as usual and nothing to worry about. -- Clark S. Cox III clarkc...@gmail.com _______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) 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: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com