Re: [Mesa-dev] [PATCH] util: add more memory debugging features

2012-11-28 Thread Brian Paul
On 11/28/2012 02:14 PM, Jose Fonseca wrote: - Original Message - On 11/28/2012 12:39 PM, Brian Paul wrote: 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. -

Re: [Mesa-dev] [PATCH] util: add more memory debugging features

2012-11-28 Thread Jose Fonseca
Looks good to me. Jose - Original Message - > 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. > --- > src/gallium/auxiliary/os/os_memory_debug.h |3 +

Re: [Mesa-dev] [PATCH] util: add more memory debugging features

2012-11-28 Thread Jose Fonseca
- Original Message - > On 11/28/2012 12:39 PM, Brian Paul wrote: > > 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. > > --- > > src/gallium/a

Re: [Mesa-dev] [PATCH] util: add more memory debugging features

2012-11-28 Thread Brian Paul
On 11/28/2012 01:56 PM, Kenneth Graunke wrote: On 11/28/2012 12:39 PM, Brian Paul wrote: 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. --- src/gallium/auxiliary/os/o

Re: [Mesa-dev] [PATCH] util: add more memory debugging features

2012-11-28 Thread Kenneth Graunke
On 11/28/2012 12:39 PM, Brian Paul wrote: 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. --- src/gallium/auxiliary/os/os_memory_debug.h |3 + src/gallium/auxil

[Mesa-dev] [PATCH] util: add more memory debugging features

2012-11-28 Thread Brian Paul
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. --- src/gallium/auxiliary/os/os_memory_debug.h |3 + src/gallium/auxiliary/util/u_debug_memory.c | 82