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: Support for i386 builds of glibc?


On 03/04/2013 10:11 PM, David Miller wrote:
From: "Maciej W. Rozycki" <macro@codesourcery.com>
Date: Mon, 4 Mar 2013 20:56:08 +0000

They could be easily emulated with the aid of global spinlocks, but
given the decline of the i386 it's probably not worth the effort.

This is a misnomer, you can't use global spinlocks as those are not signal safe and will deadlock. Even the glibc testsuite will trigger such deadlocks.

i386 supports atomic increment and decrement. This should be sufficient for NPTL, its use of CAS stems from an optional optimization not really required for using futexes. So a hypothetical i386 version would not need a system call on the fast path.


--
Florian Weimer / Red Hat Product Security Team


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