Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTon Roosendaal <ton@blender.org>2006-11-27 16:59:55 +0300
committerTon Roosendaal <ton@blender.org>2006-11-27 16:59:55 +0300
commit6d540b6333b0ab846ae2369e25cd2f0a85175d65 (patch)
treeb69a17bf53f18035044c2f92bb2fbcba0112e006 /intern/guardedalloc/MEM_guardedalloc.h
parent2e0084c2d9bc53adf0a9589e71ed89841d34eb65 (diff)
More debug goodies:
WINDOWS CRASH EMULATION! If you use the -d (debug) argument for starting blender, it will now: - set all freed memory to 0xFFFFFFFF - set all malloced memory to 0xFFFFFFFF The first option will give nice crashers when you read from freed memory. The second option is for OSX especially, it has the nasty habit to give zeroed mallocs.
Diffstat (limited to 'intern/guardedalloc/MEM_guardedalloc.h')
-rw-r--r--intern/guardedalloc/MEM_guardedalloc.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/intern/guardedalloc/MEM_guardedalloc.h b/intern/guardedalloc/MEM_guardedalloc.h
index ce9f2a273bd..26a9258d03b 100644
--- a/intern/guardedalloc/MEM_guardedalloc.h
+++ b/intern/guardedalloc/MEM_guardedalloc.h
@@ -115,6 +115,10 @@ extern "C" {
/** Set thread locking functions for safe memory allocation from multiple
threads, pass NULL pointers to disable thread locking again. */
void MEM_set_lock_callback(void (*lock)(void), void (*unlock)(void));
+
+ /** Attempt to enforce OSX (or other OS's) to have malloc and stack nonzero */
+ void MEM_set_memory_debug(void);
+
#ifdef __cplusplus
}