malloc() and spinlocks

Wolfram Gloger Wolfram.Gloger@dent.med.uni-muenchen.de
Tue Nov 26 08:56:00 GMT 2002


Hi,

> Generally the spinlock style locks perform better in threaded
> applications on SMP hardware anyway. I'm not aware of the
> motivations behind choosing the more heavy lock code,

It was just portability.

> but a
> change to spinlocks probably won't hurt threaded applications.

In fact, threaded applications will benefit just as non-threaded ones.
It was unintentional that the spinlocks weren't enabled on ix86 in
glibc.

Regards,
Wolfram.



More information about the Libc-alpha mailing list