• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: ObjectAlloc and x_mem_alloc_bucket
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


References: 
 >ObjectAlloc and x_mem_alloc_bucket (From: Roland King <email@hidden>)

  • Prev by Date: Re: Clang - Spurious Errors Fixed with Undo
  • Next by Date: Re: Clang - Spurious Errors Fixed with Undo
  • Previous by thread: ObjectAlloc and x_mem_alloc_bucket
  • Next by thread: Compiling 3-way Universal for 10.4+
  • Index(es):
    • Date
    • Thread