Subject: Re: NMBCLUSTERS again
To: None <>
From: Joerg Sonnenberger <>
List: tech-net
Date: 10/29/2007 13:40:00
On Mon, Oct 29, 2007 at 12:44:16AM -0700, Darren Reed wrote:
> What I'd like to suggest is that we add "char *mh_file" and
> "int mh_line" to "m_hdr" if DEBUG is defined and assign the
> values of __FILE__ and __LINE__ to these fields in MGET and
> MGETHDR if DEBUG is defined.

Use a single pointer and a global linked list.
__builtin_return_address(0) is cheaper and doesn't add that much
overhead. The global linked list can be iterated over from gdb.