Return-Path: <awaresystems.be+caf_=filtered=awaresystems.be@gmail.com>
Delivered-To: filtered@awaresystems.be
Received: from mx-k.one.com (mx-k.one.com [91.198.169.58])
	by mail6.b-one.net (Postfix) with ESMTP id 5825280150200
	for <filtered@awaresystems.be>; Fri,  7 Sep 2012 16:23:16 +0200 (CEST)
X-Virus-Scanned: by one.com
Received-SPF: pass (mx-k: domain of awaresystems.be+caf_=filtered=awaresystems.be@gmail.com designates 209.85.212.48 as permitted sender)
X-Greylist: whitelisted by SQLgrey-1.8.0-rc2
Received: from mail-vb0-f48.google.com (mail-vb0-f48.google.com [209.85.212.48])
	by mx-k.one.com (Postfix) with ESMTP id E3B2FE84015
	for <filtered@awaresystems.be>; Fri,  7 Sep 2012 14:23:15 +0000 (UTC)
Received: by vbme21 with SMTP id e21so4475679vbm.21
        for <filtered@awaresystems.be>; Fri, 07 Sep 2012 07:23:15 -0700 (PDT)
Received: by 10.52.26.7 with SMTP id h7mr6006561vdg.41.1347027794907;
        Fri, 07 Sep 2012 07:23:14 -0700 (PDT)
X-Forwarded-To: filtered@awaresystems.be
X-Forwarded-For: awaresystems.be@gmail.com filtered@awaresystems.be
Delivered-To: awaresystems.be@gmail.com
Received: by 10.58.70.138 with SMTP id m10csp421150veu;
        Fri, 7 Sep 2012 07:23:14 -0700 (PDT)
Received: by 10.52.72.34 with SMTP id a2mr6069688vdv.109.1347027793158;
        Fri, 07 Sep 2012 07:23:13 -0700 (PDT)
Received-SPF: neutral (google.com: 195.47.247.76 is neither permitted nor denied by best guess record for domain of tiff-bounces@lists.maptools.org) client-ip=195.47.247.76;
Received: by 10.230.202.26 with POP3 id fc26mf1266082vbb.1;
        Fri, 07 Sep 2012 07:23:12 -0700 (PDT)
X-Gmail-Fetch-Info: info@awaresystems.be 1 pop.awaresystems.be 110 info@awaresystems.be
Delivered-To: info@awaresystems.be
Received: from mx05.one.com (mx05.one.com [195.47.247.76])
	by mail6.b-one.net (Postfix) with ESMTP id 360B28015099E
	for <info@awaresystems.be>; Fri,  7 Sep 2012 16:18:35 +0200 (CEST)
X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0-rc2
Received: from lists.maptools.org (lists.maptools.org [65.39.174.144])
	by mx05.one.com (Postfix) with ESMTP id 82CB0182A5F
	for <info@awaresystems.be>; Fri,  7 Sep 2012 14:18:33 +0000 (UTC)
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by lists.maptools.org (Postfix) with ESMTP id 4C17F536003;
	Fri,  7 Sep 2012 09:17:21 -0500 (EST)
Received: from blade.simplesystems.org (blade.simplesystems.org [65.66.246.74])
	by lists.maptools.org (Postfix) with ESMTPS id 2AC26536003
	for <tiff@lists.maptools.org>; Fri,  7 Sep 2012 09:17:06 -0500 (EST)
Received: from freddy.simplesystems.org (freddy.simplesystems.org
	[65.66.246.65])
	by blade.simplesystems.org (8.14.4+Sun/8.14.4) with ESMTP id
	q87EGujn024976; Fri, 7 Sep 2012 09:16:57 -0500 (CDT)
Date: Fri, 7 Sep 2012 09:16:56 -0500 (CDT)
From: Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
X-X-Sender: bfriesen@freddy.simplesystems.org
To: Robert.Atwood@diamond.ac.uk
In-Reply-To: <6CCDD8FC6578314C902BBF87D511D9D8267326BC@EXCHMBX01.fed.cclrc.ac.uk>
Message-ID: <alpine.GSO.2.01.1209070910090.27589@freddy.simplesystems.org>
References: <6CCDD8FC6578314C902BBF87D511D9D8267301D4@EXCHMBX01.fed.cclrc.ac.uk>
	<CAGNS0Rv+MbyVoFcVXr0Wwcom0FMMyssAAnciybvG_dRpnpqhHw@mail.gmail.com>
	<6CCDD8FC6578314C902BBF87D511D9D826732523@EXCHMBX01.fed.cclrc.ac.uk>
	<CA+NZCsTss_8Dv9bg7sZovvP8RzUH=u2PuM4_8akp20yJcHDOUg@mail.gmail.com>
	<6CCDD8FC6578314C902BBF87D511D9D826732591@EXCHMBX01.fed.cclrc.ac.uk>
	<CA+NZCsSbXJfnwDoqp2hw5JpGn+SReAJPuNjuBqHouqD0tDnqjQ@mail.gmail.com>
	<6CCDD8FC6578314C902BBF87D511D9D8267326BC@EXCHMBX01.fed.cclrc.ac.uk>
User-Agent: Alpine 2.01 (GSO 1266 2009-07-14)
MIME-Version: 1.0
X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.2.2
	(blade.simplesystems.org [65.66.246.90]);
	Fri, 07 Sep 2012 09:16:57 -0500 (CDT)
Cc: info@awaresystems.be, tiff@lists.maptools.org
Subject: Re: [Tiff] Managing the buffer
X-BeenThere: tiff@lists.maptools.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: TIFF and libtiff discussion <tiff.lists.maptools.org>
List-Unsubscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@lists.maptools.org?subject=unsubscribe>
List-Archive: <http://lists.maptools.org/mailman/private/tiff>
List-Post: <mailto:tiff@lists.maptools.org>
List-Help: <mailto:tiff-request@lists.maptools.org?subject=help>
List-Subscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@lists.maptools.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org

On Fri, 7 Sep 2012, Robert.Atwood@diamond.ac.uk wrote:

> I don't see how to do it without altering the code of libtiff, as 
> far as I can tell _TIFFMalloc just calls malloc() (on unix) and I 
> suppose that, at compile time, the build system uses a different 
> allocation routine depending upon the platform it's on. It would be 
> better for me not to use TIFF than to require having a special 
> 'hacked' version of libtiff!

What operating system are you using?

Some operating systems allow easily replacing the memory allocators at 
run-time by telling the system to load a library before loading other 
libraries.  For example, under Solaris, Linux, and FreeBSD, this can 
be done via the LD_PRELOAD environment variable.  Replacing the 
underlying memory allocator is a common use for this functionality.

If you are experiencing issues with the memory allocator you could try 
alternate ones like libumem.

Bob
-- 
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/
_______________________________________________
Tiff mailing list: Tiff@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/
