On Nov 16, 2015, at 1:10 AM, 吴降龙 <[email protected] 
<mailto:[email protected]>> 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
_______________________________________________
jemalloc-discuss mailing list
[email protected]
http://www.canonware.com/mailman/listinfo/jemalloc-discuss

Reply via email to