[Bug libobjc/47031] libobjc uses mutexes for properties
js-gcc at webkeks dot org
gcc-bugzilla@gcc.gnu.org
Sat Jan 8 16:34:00 GMT 2011
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.
More information about the Gcc-bugs
mailing list