• Marko Mäkelä's avatar
    Add ASAN instrumentation (and more strict Valgrind) to InnoDB · 8637931f
    Marko Mäkelä authored
    mem_heap_free_heap_top(): Remove UNIV_MEM_ASSERT_W() and unpoison
    the memory region first, because part of it may have been poisoned
    by an earlier mem_heap_free_top() call.
    Poison the address range at the end.
    
    mem_heap_block_free(): Poison the address range at the end.
    
    UNIV_MEM_ASSERT_AND_ALLOC(): Replace with UNIV_MEM_ALLOC().
    We want to keep the address ranges poisoned (unaccessible) as
    long as possible.
    
    UNIV_MEM_ASSERT_AND_FREE(): Replace with UNIV_MEM_FREE().
    8637931f
mem0mem.ic 16.2 KB