• 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: Frank Rimlinger <email@hidden>
  • Date: Sun, 28 Oct 2007 12:52:36 -0400


Well, silly me.  I did not have a .MacOSX directory, so I just put MallocCheckHeapEach in Spotlight.  Sure enough, look how my code begins:

int main(int argc, char *argv[])
{

setenv("MallocPreScribble","1",1);
setenv("MallocScribble","1",1);
setenv("MallocCheckHeapStart","0",1);
setenv("MallocCheckHeapEach","1",1);
setenv("MallocCheckHeapAbort","1",1);
setenv("MallocBadFreeAbort","1",1);

When I comment these lines out, I no longer observe the undesired information, and performance is nominal.  So, apparently, setenv() has been fixed in Leopard!  Too bad there is no way to file an "anti-bug".

Frank

On Oct 28, 2007, at 3:54 AM, Chris Espinosa wrote:
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

References: 
 >malloc performance problem on Xcode 3.0 (From: Frank Rimlinger <email@hidden>)
 >Re: malloc performance problem on Xcode 3.0 (From: Chris Espinosa <email@hidden>)

  • Prev by Date: Using IB2 to edit a nib file saved by IB3
  • Next by Date: Re:Output to the XCode 3.0 console (Lorenzo)
  • Previous by thread: Re: malloc performance problem on Xcode 3.0
  • Next by thread: New SCM problems in XCode
  • Index(es):
    • Date
    • Thread