This is the mail archive of the libc-alpha@sources.redhat.com 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: malloc() and spinlocks


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.


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