• 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
ObjectAlloc and x_mem_alloc_bucket
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

ObjectAlloc and x_mem_alloc_bucket


  • Subject: ObjectAlloc and x_mem_alloc_bucket
  • From: Roland King <email@hidden>
  • Date: Sun, 6 Sep 2009 23:08:39 +0800

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.

Oddly enough, if I run with 'leaks' instead of 'Object Allocations', even though the leaks template runs object allocations at the same time, it doesn't happen. The Malloc 8 and 56 blocks don't grow, leaks never finds any leaks. I get the same on the simulator and the device, in debug or release. Object Alloc instruments shows those two blocks being alloc'ed and never freed, the address is reused every time, running with leaks stops that happening and no leak is shown.

This sort of feels like an instruments bug, or am I misunderstanding the output or ... anything? _______________________________________________
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
  • Follow-Ups:
    • Re: ObjectAlloc and x_mem_alloc_bucket
      • From: David Duncan <email@hidden>
  • Prev by Date: ellipsis problem
  • Next by Date: Re: libxml2 in Xcode 3.2
  • Previous by thread: Re: ellipsis problem
  • Next by thread: Re: ObjectAlloc and x_mem_alloc_bucket
  • Index(es):
    • Date
    • Thread