Fix two valgrind integration regressions.

The regressions were never merged into the master branch.
This commit is contained in:
Jason Evans
2015-06-22 14:38:06 -07:00
parent 713b844bff
commit 4f6f2b131e
2 changed files with 9 additions and 3 deletions

View File

@@ -121,7 +121,7 @@ base_alloc(size_t size)
base_resident += PAGE_CEILING((uintptr_t)ret + csize) -
PAGE_CEILING((uintptr_t)ret);
}
JEMALLOC_VALGRIND_MAKE_MEM_UNDEFINED(ret, csize);
JEMALLOC_VALGRIND_MAKE_MEM_DEFINED(ret, csize);
label_return:
malloc_mutex_unlock(&base_mtx);
return (ret);