News for hackers. Stuff that matters.
Re:Chromium project finds that 70% of security defects are m... by dirtydroog on Sunday May 24, 2020 @10:26AM (#23291744)
That depends on the allocator used. The default libc one works but isn't great performance-wise. It is possible to intercept calls to malloc/free by using LD_PRELOAD on Linux. That will allow you to use allocators such as jemalloc or tcmalloc instead.

Of course, repeatedly allocating and freeing is poor for performance. Cache/pre-allocate when you can. This goes for managed languages too.

There are no comments on this comment yet.