aboutsummaryrefslogtreecommitdiff
path: root/libpthread/linuxthreads/spinlock.c
AgeCommit message (Collapse)AuthorFilesLines
2016-05-31linuxthreads.old: Fix segfault when pthread_mutex_unlock() called against ↵Leonid Lisovskiy1-3/+9
unlocked NORMAL mutex. Althought, it is undefined behavior, there is no reason for segfault. Program received signal SIGSEGV, Segmentation fault. __pthread_unlock (lock=lock@entry=0x804b03c <lock+16>) at libpthread/linuxthreads.old/spinlock.c:231 231 (&lock->__status, oldstatus, (long)(thr->p_nextlock) & ~1L)) It occurs only on platforms which has HAS_COMPARE_AND_SWAP defined. Restore glibc commit fbaf6e72d6 "spinlock.c (__pthread_unlock): Don't crash if called for an untaken mutex." behavior, broken later by commit 4ad1d0cfbf. Signed-off-by: Leonid Lisovskiy <lly.dev@gmail.com>
2016-05-18remove linuxthreads.new, rename linuxthreads.oldWaldemar Brodkorb1-18/+6
Linuxthreads.new isn't really useful with the existence of NPTL/TLS for well supported architectures. There is no reason to use LT.new for ARM/MIPS or other architectures supporting NPTL/TLS. It is not available for noMMU architectures like Blackfin or FR-V. To simplify the live of the few uClibc-ng developers, LT.new is removed and LT.old is renamed to LT. LINUXTHREADS_OLD -> UCLIBC_HAS_LINUXTHREADS
2015-02-14Revert "resolve merge"Waldemar Brodkorb1-6/+18
This reverts commit 6b6ede3d15f04fe825cfa9f697507457e3640344.
2015-02-14resolve mergeWaldemar Brodkorb1-18/+6
2009-03-12linuxthreads fixes from Will Newton (will.newton AT gmail.com):Denis Vlasenko1-1/+13
* share Sys V semaphores in order to get appropriate SEM_UNDO semantics. * correct guardaddr in pthread_free() for TLS case * move spinlock unlocking before restart() * When exit was called from a signal handler, the restart from the manager processing the exit request instead restarted the thread in pthread_cond_timedwait. (see http://sources.redhat.com/ml/libc-ports/2006-05/msg00000.html)
2008-07-23- fix inline keywordBernhard Reutner-Fischer1-1/+1
2006-02-01change asm/volatile to __x__Peter S. Mazinger1-2/+2
2006-01-31initial import of latest linuxthreadsMike Frysinger1-0/+720
2005-11-15rename current stable linuxthreads to linuxthreads.old to prepare for import ↵Mike Frysinger1-723/+0
of latest glibc version
2005-09-08sync with glibcMike Frysinger1-1/+1
2005-05-28gcc saysJoakim Tjernlund1-1/+1
spinlock.c:35: warning: matching constraint does not allow a register Update the asm to match glibc.
2003-02-27Major update for pthreads, based in large part on improvementsEric Andersen1-44/+572
from glibc 2.3. This should make threads much more efficient. -Erik
2002-02-20Merge in the pthread library. This is the linuxthreads library taken fromEric Andersen1-0/+195
glibc 2.1.3 and ported to work with uClibc by Stefan Soucek and Erik Andersen (me). Stefan has hacked things up such that linuxthreads runs on MMU-less systems (tested only on arm-nommu). Erik cleaned things up and made it work properly as a shared library. -Erik