tech-userlevel archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: getting Android's bionic C library back in sync with upstream

On Thu, Jul 26, 2012 at 08:06:58AM -0400, Greg Troxel wrote:
> A perhaps relevant anecdote is that a lot of the pthread functions are
> specified to have undefined behavior in error cases (unlocking unlocked
> mutex, locking an uninitialized mutex, etc.).  For a while NetBSD's
> default behavior was to abort in those cases; this behavior is standards
> compliant and took the view that such calls were buggy and a clue to
> more underlying issues.  But there was so much code that did this
> (mozilla, at least, IIRC) and so little progress in those upstreams
> fixing their code that the default was changed, with some angst.

Android, though, has the muscle to make the world better about
these kinds of dangerous programming mistakes...


Home | Main Index | Thread Index | Old Index