Here有一个关于malloc包的环境变量列表:
- MallocStackLogging
- MallocStackLoggingNoCompact
- MallocPreScribble
- MallocScribble
- MallocGuardEdges
- MallocDoNotProtectPrelude
- MallocDoNotProtectPostlude
- MallocCheckHeapStart
- MallocCheckHeapEach
- MallocCheckHeapSleep
- MallocCheckHeapAbort
- MallocBadFreeAbort
另外,当我从XCode 4打开项目的Diagnostics部分时,我看到在Memory Management下有
- 启用Scribble
- 启用Guard Edge
- 启用Guard Malloc
所以,我有点困惑。这些环境变量是否应与诊断设置结合使用,或者这些诊断设置是否为启用上面列出的环境变量的快捷方式?