开发者

What's the relation between malloc diagnostics and malloc related environment variables?

开发者 https://www.devze.com 2023-04-07 18:38 出处:网络
Here there\'s a list of environment variables about the malloc package: MallocStackLogging MallocStackLoggingNoCompact

Here there's a list of environment variables about the malloc package:

  • MallocStackLogging
  • MallocStackLoggingNoCompact
  • MallocPreScribble
  • MallocScribble
  • MallocGuardEdges
  • MallocDoNotProtectPrelude
  • MallocDoNotProtectPostlude
  • MallocCheckHeapStart
  • MallocCheckHeapEach
  • MallocCheckHeapSleep
  • MallocCheckHeapAbort
  • MallocBadFreeAbort

Also, when I open the Diagnostics section of my project from XCode 4, I see that under Memory Management, there are

  • Enable Scribble
  • Enable Guard Edges
  • Enable Guard Malloc

So, I'm a little bit confused. Should these environme开发者_StackOverflow中文版nt variables be used in combination with the diagnostics settings, or are these diagnostics settings a shortcut for enabling the environment variables listed above?


To my knowledge they're shortcuts to the most common options; to use the others you need to set with environment variables.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号