Re: malloc performance problem on Xcode 3.0
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
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