diff options
author | Qi Wang <interwq@gwu.edu> | 2019-03-22 05:21:43 (GMT) |
---|---|---|
committer | Qi Wang <interwq@gmail.com> | 2019-03-29 18:33:00 (GMT) |
commit | a4d017f5e5aea12b745e67679ba40753f6d7a778 (patch) | |
tree | c939ebe3407c2307e351a584f87c677309c713e7 | |
parent | fb56766ca9b398d07e2def5ead75a021fc08da03 (diff) | |
download | jemalloc-a4d017f5e5aea12b745e67679ba40753f6d7a778.zip jemalloc-a4d017f5e5aea12b745e67679ba40753f6d7a778.tar.gz jemalloc-a4d017f5e5aea12b745e67679ba40753f6d7a778.tar.bz2 |
Output message before aborting on tcache size-matching check.
-rw-r--r-- | src/tcache.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/tcache.c b/src/tcache.c index be4fb87..e7b970d 100644 --- a/src/tcache.c +++ b/src/tcache.c @@ -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(); } } |