summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorQi Wang <interwq@gwu.edu>2019-03-22 05:21:43 (GMT)
committerQi Wang <interwq@gmail.com>2019-03-29 18:33:00 (GMT)
commita4d017f5e5aea12b745e67679ba40753f6d7a778 (patch)
treec939ebe3407c2307e351a584f87c677309c713e7
parentfb56766ca9b398d07e2def5ead75a021fc08da03 (diff)
downloadjemalloc-a4d017f5e5aea12b745e67679ba40753f6d7a778.zip
jemalloc-a4d017f5e5aea12b745e67679ba40753f6d7a778.tar.gz
jemalloc-a4d017f5e5aea12b745e67679ba40753f6d7a778.tar.bz2
Output message before aborting on tcache size-matching check.
-rw-r--r--src/tcache.c3
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();
}
}