Can we come up with a suitable set of tests to replicate and verify this, like 
a bunch of dispatch_async calls to increment an NSInteger and then to decrement 
the NSInteger that repeats while true?

Sent from my iPhone

> On May 6, 2016, at 5:34 PM, Quincey Morris 
> <quinceymor...@rivergatesoftware.com> wrote:
> 
> ** There is, however, a small cloud hovering over GCD. This has been reported 
> in the developer forums independently by different developers. Apparently, a 
> GCD queue (under what circumstances isn’t clear) can use additional memory 
> for each block that’s ever queued. That is, if a queue has historically run 
> and disposed of N blocks, it will keep N * X bytes of memory around, even 
> though its queue might currently be empty. The value of X is very small, so 
> you have to go through tens of thousands of blocks before you’d even notice. 
> It’s not clear if this is a memory leak, or a cache that would eventually 
> stop increasing in size and/or be reclaimed.

_______________________________________________

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:
https://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to