• 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: malloc performance problem on Xcode 3.0
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: malloc performance problem on Xcode 3.0


  • Subject: Re: malloc performance problem on Xcode 3.0
  • From: Chris Espinosa <email@hidden>
  • Date: Sun, 28 Oct 2007 00:54:05 -0700


On Oct 27, 2007, at 3:03 PM, Frank Rimlinger wrote:

I get the following console message when running C++ using Xcode 3.0 on Leopard:

Running…
worker3(19876) malloc: enabling scribbling to detect mods to free blocks
worker3(19876) malloc: checks heap after 1th operation and each 1 operations
worker3(19876) malloc: will abort on heap corruption
worker3(19876) malloc: MallocCheckHeap: PASSED check at 1th operation

The last line of this message then repeats over and over for every single malloc operation, which absolutely kills performance.  I looked through the preferece settings but there is nothing about malloc there.  Guard Malloc is not enabled.  According to

http://developer.apple.com/releasenotes/DeveloperTools/RN-MallocOptions/index.html#//apple_ref/doc/uid/TP40001026-DontLinkElementID_2

the relevant environmental variables are MallocCheckHeapStart and MallocCheckHeapEach.  These are apparently set to 1 for my execution.  However, when I do a getInfo on my executable, no environmental variables show up in the list.  I think there must be a secret place where these variables are set, but where is it???

Check for a ~/.MacOSX/environment.plist file in your home directory; settings in this file take effect on login for all processes in your session.

If you haven't enabled GuardMalloc, are not launching under MallocDebug or Instruments, and haven't set them in the executable environment, they're being set globally, is my guess.

Chris 
 _______________________________________________
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: malloc performance problem on Xcode 3.0
      • From: Frank Rimlinger <email@hidden>
References: 
 >malloc performance problem on Xcode 3.0 (From: Frank Rimlinger <email@hidden>)

  • Prev by Date: Re: Old issues resolved?
  • Next by Date: Re: malloc performance problem on Xcode 3.0
  • Previous by thread: Re: malloc performance problem on Xcode 3.0
  • Next by thread: Re: malloc performance problem on Xcode 3.0
  • Index(es):
    • Date
    • Thread