DragonFly commits List (threaded) for 2010-10
git: nmalloc - Fix depot race - this should fix remaining issues with firefox.
Author: Matthew Dillon <email@example.com>
Date: Mon Oct 11 12:21:32 2010 -0700
nmalloc - Fix depot race - this should fix remaining issues with firefox.
* nmalloc was accidently calling the libc _pthread_spin_lock() stub
even when threaded, causing all depot operations to race. No actual
lock was being acquired.
Change it over to the internal _SPINLOCK() API.
* Expand libthread_xu's base spinlocks from 128 to 256 and use those
for the depot lock. Note that the depot array can be upwards of
80 elements so lets not take any chances.
Reported-by: Pierre Abbat <firstname.lastname@example.org>, others
Summary of changes:
lib/libc/stdlib/nmalloc.c | 18 +++++++++---------
lib/libthread_xu/thread/thr_spinlock.c | 2 +-
2 files changed, 10 insertions(+), 10 deletions(-)
DragonFly BSD source repository