This is the mail archive of the libc-alpha@sourceware.org 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]
Other format: [Raw text]

Re: [PATCH 03/11] Add external interface changes: new lock types for pthread_mutex_t


> Yes, I'm aware of this.  And that's an unfortunate situation to be in,
> but I don't see another way to ensure that we still comply with the
> POSIX requirements -- we can't just ignore those.  Since we had the
> discussion about the semantics months ago, I haven't seen someone else
> suggest a different way to solve this

I don't see this dead lock thing as a requirement (as in likely to
affect any programs). It's simply a bug.

> I think you should also consider the risk of deviating from the POSIX
> semantics: If, for example, distributions do not enable elision because
> they are worried about breaking existing programs, then this will lead

I'm pretty confident that noone interested in real software
will worry about their programs not deadlocking, or rather
taking longer to deadlock (most likely it would deadlock at some point
if you keep executing it, even with lock elision, as there are always
a few aborts over time)

I can clarify it in the documentation though, although I will
expect it will confuse people more than it will help.

-Andi

-- 
ak@linux.intel.com -- Speaking for myself only.


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