[Bug libobjc/47031] libobjc uses mutexes for properties

2011-01-08 Thread js-gcc at webkeks dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47031 --- Comment #8 from 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 w

[Bug libobjc/47031] libobjc uses mutexes for properties

2011-01-08 Thread nicola at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47031 --- Comment #7 from Nicola Pero 2011-01-08 11:39:38 UTC --- > Usually, the lock is not held. If it is, you do a little trick: You spin 10 > times and if you still could not get the lock, it's likely the current thread > is blocking another threa

[Bug libobjc/47031] libobjc uses mutexes for properties

2011-01-07 Thread js-gcc at webkeks dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47031 --- Comment #6 from js-gcc at webkeks dot org 2011-01-07 18:43:15 UTC --- > This means that, assuming that spinlocks are infinitely faster than mutexes, > in > the best possible conditions they would speed up the accessors (or, at least, > the s

[Bug libobjc/47031] libobjc uses mutexes for properties

2011-01-07 Thread nicola at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47031 --- Comment #5 from Nicola Pero 2011-01-07 18:23:10 UTC --- I tried the same benchmark using pthread_spin_lock() and pthread_spin_unlock(); it takes about 11.4 seconds. So, that means the time required to execute an accessor can go down to about

[Bug libobjc/47031] libobjc uses mutexes for properties

2011-01-07 Thread nicola at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47031 --- Comment #4 from Nicola Pero 2011-01-07 17:56:01 UTC --- Jonathan thanks for your comments - they are very useful and we certainly want to look at performance. ;-) I'm not terribly convinced by using spinlocks in this context, but I'm happy

[Bug libobjc/47031] libobjc uses mutexes for properties

2011-01-01 Thread js-gcc at webkeks dot org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47031 --- Comment #3 from js-gcc at webkeks dot org 2011-01-01 12:06:56 UTC --- > The problem is that property accessors are basically general purpose routines that may be used in the most varied situations. It does not matter very much in which situa

[Bug libobjc/47031] libobjc uses mutexes for properties

2010-12-29 Thread nicola at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47031 --- Comment #2 from Nicola Pero 2010-12-29 16:10:51 UTC --- I'm actually not very convinced by this any more; we probably need some benchmarks. ;-) The problem is that property accessors are basically general purpose routines that may be used in

[Bug libobjc/47031] libobjc uses mutexes for properties

2010-12-21 Thread nicola at gcc dot gnu.org
http://gcc.gnu.org/bugzilla/show_bug.cgi?id=47031 Nicola Pero changed: What|Removed |Added Status|UNCONFIRMED |NEW Last reconfirmed|