[PATCH] search for modern malloc implementation

From: Amos Jeffries <squid3_at_treenet.co.nz>
Date: Sat, 29 May 2010 18:58:16 +1200

This updates configure.in to make it search for and link in a modern
malloc library. If none is found the default libc implementation is used.

Search list is sorted by apparent speed, but the benchmarks were a few
years ago so if anyone has info on a better priority order that would be
welcome.

Notes:
  malloc is the call searched for to find a library. The alternative
mallopt, mallinfo, and mallocblksize already have build wrappers so we
are not locked into requiring them, though they would be useful.

  One weirdness appeared while testing. It seems the special case
disabling of functions for GNU malloc was not working anyway. The
protection wrapper tests later on were overriding the hard-coded disable.

Only one question remains in my mind:
   do we need to retain the special case disabling of malloc libraries
or Solaris and FreeBSD?

Amos

-- 
Please be using
   Current Stable Squid 2.7.STABLE9 or 3.1.3

Received on Sat May 29 2010 - 06:58:26 MDT

This archive was generated by hypermail 2.2.0 : Sat May 29 2010 - 12:00:12 MDT