util: add more memory debugging features
authorBrian Paul <brianp@vmware.com>
Wed, 28 Nov 2012 20:35:01 +0000 (13:35 -0700)
committerBrian Paul <brianp@vmware.com>
Wed, 28 Nov 2012 22:03:29 +0000 (15:03 -0700)
commit0904973e3921da57037b29f7a6fe7074a70318d2
tree6fd6ae2e19043e503939feea0d712f9be0322284
parent1cead8845b95643582903f054255d20b3de3e19a
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 <jfonseca@vmware.com>
src/gallium/auxiliary/os/os_memory_debug.h
src/gallium/auxiliary/util/u_debug_memory.c