mirror of
https://github.com/jemalloc/jemalloc.git
synced 2026-04-14 22:51:50 +03:00
Output message before aborting on tcache size-matching check.
This commit is contained in:
parent
fb56766ca9
commit
a4d017f5e5
1 changed files with 3 additions and 0 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue