Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 19 Jan 2009 19:41:35 -0500
From:      Brian Fundakowski Feldman <green@FreeBSD.org>
To:        Jason Evans <jasone@FreeBSD.org>
Cc:        hackers@FreeBSD.org, Julian Elischer <julian@elischer.org>
Subject:   Re: threaded, forked, rethreaded processes will deadlock
Message-ID:  <20090120004135.GB12007@green.homeunix.org>
In-Reply-To: <49710BD6.7040705@FreeBSD.org>
References:  <20090109031942.GA2825@green.homeunix.org> <Pine.GSO.4.64.0901082237001.28531@sea.ntplx.net> <20090109053117.GB2825@green.homeunix.org> <4966F81C.3070406@elischer.org> <20090109163426.GC2825@green.homeunix.org> <49678BBC.8050306@elischer.org> <20090116211959.GA12007@green.homeunix.org> <49710BD6.7040705@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Jan 16, 2009 at 02:36:06PM -0800, Jason Evans wrote:
> Brian Fundakowski Feldman wrote:
>  > Could you, and anyone else who would care to, check this out?  It's a 
> regression
>> fix but it also makes the code a little bit clearer.  Thanks!
>> 
>> Index: lib/libc/stdlib/malloc.c
> 
> Why does malloc need to change for this?  Unless there's a really good 
> reason, I don't want the extra branches in the locking functions.

Because malloc is the thing causing the regression.  It is easy enough
to optimize out the one extra fetch and branch in the single-threaded case
if I can get some consensus that the fix to it is actually fine.

-- 
Brian Fundakowski Feldman                           \'[ FreeBSD ]''''''''''\
  <> green@FreeBSD.org                               \  The Power to Serve! \
 Opinions expressed are my own.                       \,,,,,,,,,,,,,,,,,,,,,,\



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20090120004135.GB12007>