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


> The reason I don't like this patch is that spinlocks do not work in RT
> processes.  Even with multiple arenas you can get into a situation where
> nothing works.

Are you sure?  The patch doesn't contain pure spinlocks;
__sched_yield() is called after N lock attempts.  I can't see a
situation where deadlock could occur with the patch and would not
occur with mutexes.

> This is why the nptl version uses futexes and because we
> cannot depend on futexes for the LinuxThreads version we should not add it.

That of course is also my opinion.

Regards,
Wolfram.


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