how can I check whether any given address was allocated by jemalloc?
Jason Evans
jasone at canonware.com
Mon Nov 16 07:59:35 PST 2015
On Nov 16, 2015, at 1:10 AM, 吴降龙 <magickid2001 at 163.com <mailto:magickid2001 at 163.com>> wrote:
> How can I check whether any given address was allocated by jemalloc? Is that possible?
If you configure with --enable-ivsalloc, malloc_usable_size() and sallocx() will return 0 for addresses not managed by jemalloc. Without --enable-ivsalloc, these functions have undefined behavior (crashes are common) for addresses not managed by jemalloc.
Jason
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://jemalloc.net/mailman/jemalloc-discuss/attachments/20151116/4cdb14bb/attachment.html>
More information about the jemalloc-discuss
mailing list