Output message before aborting on tcache size-matching check.

This commit is contained in:
Qi Wang 2019-03-21 22:21:43 -07:00 committed by Qi Wang
parent fb56766ca9
commit a4d017f5e5

View File

@ -123,6 +123,9 @@ tbin_extents_lookup_size_check(tsdn_t *tsdn, cache_bin_t *tbin, szind_t binind,
sz_sum -= szind;
}
if (sz_sum != 0) {
malloc_printf("<jemalloc>: size mismatch in thread cache "
"detected, likely caused by sized deallocation bugs by "
"application. Abort.\n");
abort();
}
}