[cfe-dev] libclang: Memory management

Milian Wolff via cfe-dev cfe-dev at lists.llvm.org
Sun Mar 12 13:18:48 PDT 2017


On Freitag, 10. März 2017 20:33:09 CET Jusufadis Bakamovic via cfe-dev wrote:
> Yes, I think there's not much that can be done from libclang POV. This is
> all memory allocator stuff and should be handled from client code if
> required but nevertheless interesting observation we should be aware of
> when building tools.
> 
> Thanks everybody for the fruitful discussion and details provided.

BTW: If you are unsatisfied with the default behavior of the memory allocator, 
you can try to use malloc_trim:

http://man7.org/linux/man-pages/man3/malloc_trim.3.html

Cheers

-- 
Milian Wolff
mail at milianw.de
http://milianw.de
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20170312/c9ffe870/attachment.sig>


More information about the cfe-dev mailing list