On Thu, Mar 24, 2011 at 3:14 PM, gonzalo diethelm <[email protected]> wrote:

> I agree; it is nice to be able to use a malloc replacement, but a 
> user-defined allocator gives you more flexibility to do whatever you require 
> in a particular application.

I recall submitting a patch for libzmq with a user-defined allocator
that asserted if there was no heap space available. The code now still
says 'malloc' but does the assert after every call to it.

Even inside libzmq, a user-defined allocator would be cleaner IMO.
Plus it allows things like heap use monitoring.

+1 but I'm not competent to submit a patch...

-Pieter
_______________________________________________
zeromq-dev mailing list
[email protected]
http://lists.zeromq.org/mailman/listinfo/zeromq-dev

Reply via email to