This is the mail archive of the libc-alpha@sources.redhat.com mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: malloc patch for 2.2.4


On Tue, Aug 21, 2001 at 03:55:19PM -0000, Wolfram Gloger wrote:
> Hi,
> 
> Argh, if the following is the cause for the strange SMP crashes
> (haven't yet checked), well, I'll just hide somewhere..
> 
> Regards,
> Wolfram.
> 
> 2001-08-21  Wolfram Gloger  <wg@malloc.de>
> 
> 	* malloc/malloc.c: Make access to ..._hook pointers thread-safe.

Would you mind explaining how this improves thread safety?  It's not as
if you're trying to keep the hook value consistent across some other
event; each hook is called once.  And in fact, I can see it still being
thread-unsafe if copying a function pointer is non-atomic.  Isn't that
the case on, say, ia64?


-- 
Daniel Jacobowitz                           Carnegie Mellon University
MontaVista Software                         Debian GNU/Linux Developer


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]