This is the mail archive of the
gcc-bugs@gcc.gnu.org
mailing list for the GCC project.
[Bug libobjc/47031] libobjc uses mutexes for properties
- From: "js-gcc at webkeks dot org" <gcc-bugzilla at gcc dot gnu dot org>
- To: gcc-bugs at gcc dot gnu dot org
- Date: Sat, 8 Jan 2011 16:14:30 +0000
- Subject: [Bug libobjc/47031] libobjc uses mutexes for properties
- Auto-submitted: auto-generated
- References: <bug-47031-4@http.gcc.gnu.org/bugzilla/>
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47031
--- Comment #8 from js-gcc at webkeks dot org <js-gcc at webkeks dot org> 2011-01-08 16:14:28 UTC ---
Yeah, but Linux is just one of the many OSes supported by GCC. And I don't know
of any other OS that uses futexes fors pthread mutexes.
> It would still be good to try a worst-case benchmark of spinlocks in the highly
> contended case. I am assuming the performance would be really really bad, but
> then I may just be wrong. ;-)
As I said: I doubt it, as it's only 10 spins and then the control is given to
another thread.
Benchmarking Mutexes, Futexes and Spinlocks in the highligh contended case
would be interesting. I guess all three are almost equal in this case, but
differ a lot in the less contended case.