Re: ObjectAlloc and x_mem_alloc_bucket
Re: ObjectAlloc and x_mem_alloc_bucket
- Subject: Re: ObjectAlloc and x_mem_alloc_bucket
- From: David Duncan <email@hidden>
- Date: Tue, 8 Sep 2009 11:06:11 -0700
On Sep 6, 2009, at 8:08 AM, Roland King wrote:
I'm alloc-testing an iPhone app on 3.0 Snow Leopard build.
Instruments shows no net allocations except for the continual growth
of Malloc 8 Bytes and Malloc-56 Bytes blocks. When I drill in, the
responsible caller in each case is x_mem_alloc_bucket .. the
responsible library is QuartzCore and the call is deep in the openGL
drawing code.
However when I look at the address being allocated each time .. it's
the same address, every time, and that's over the course of 10s of
1000s of 'allocations'. So it really doesn't look like there's
really memory being leaked here, it looks more as if the
corresponding free isn't being caught.
This is a bug in iPhone OS 3.0. The allocator for the graphics system
is reporting realloc events as malloc events, so ObjectAlloc tallies
these as new objects that are almost never being freed. I'm not
certain why you might not see it when you add the Leaks tool, but
neither tool would show a true leak for this.
--
David Duncan
Apple DTS Animation and Printing
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Xcode-users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden