diff options
author | Brian Paul <[email protected]> | 2012-11-28 13:35:01 -0700 |
---|---|---|
committer | Brian Paul <[email protected]> | 2012-11-28 15:03:29 -0700 |
commit | 0904973e3921da57037b29f7a6fe7074a70318d2 (patch) | |
tree | 6fd6ae2e19043e503939feea0d712f9be0322284 /src/gallium/auxiliary/os/os_memory_debug.h | |
parent | 1cead8845b95643582903f054255d20b3de3e19a (diff) |
util: add more memory debugging features
Add a DEBUG_FREED_MEMORY option to help catch use-after-free errors.
Add debug_memory_check() function which can be periodically called to
check that all known blocks are good.
Reviewed-by: José Fonseca <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary/os/os_memory_debug.h')
-rw-r--r-- | src/gallium/auxiliary/os/os_memory_debug.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/gallium/auxiliary/os/os_memory_debug.h b/src/gallium/auxiliary/os/os_memory_debug.h index c664be9aad5..36b8fc63a6e 100644 --- a/src/gallium/auxiliary/os/os_memory_debug.h +++ b/src/gallium/auxiliary/os/os_memory_debug.h @@ -60,6 +60,9 @@ void * debug_realloc(const char *file, unsigned line, const char *function, void *old_ptr, size_t old_size, size_t new_size ); +void +debug_memory_check(void); + #ifdef __cplusplus } |