зеркало из https://github.com/mozilla/pjs.git
Bugzilla bug 113740: do not use the 32-bit SPARC assembly implementation of
PRStack because it may cause starvation of the lock owner, leaving the other threads spinning trying to acquire the lock. Modified files: configure configure.in pr/include/md/_solaris.h
This commit is contained in:
Родитель
962ae85f0b
Коммит
7139a23b7d
|
@ -5282,8 +5282,6 @@ EOF
|
|||
PR_MD_ASFILES=os_SunOS.s
|
||||
if test -n "$USE_64"; then
|
||||
PR_MD_ASFILES="$PR_MD_ASFILES os_SunOS_sparcv9.s"
|
||||
else
|
||||
PR_MD_ASFILES="$PR_MD_ASFILES os_SunOS_32.s"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
@ -5536,7 +5534,7 @@ s%\[%\\&%g
|
|||
s%\]%\\&%g
|
||||
s%\$%$$%g
|
||||
EOF
|
||||
DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' '| tr '\015' ' '`
|
||||
DEFS=`sed -f conftest.defs confdefs.h | tr '\012' ' ' | tr '\015' ' '`
|
||||
rm -f conftest.defs
|
||||
|
||||
|
||||
|
|
|
@ -2146,8 +2146,6 @@ case "$target" in
|
|||
PR_MD_ASFILES=os_SunOS.s
|
||||
if test -n "$USE_64"; then
|
||||
PR_MD_ASFILES="$PR_MD_ASFILES os_SunOS_sparcv9.s"
|
||||
else
|
||||
PR_MD_ASFILES="$PR_MD_ASFILES os_SunOS_32.s"
|
||||
fi
|
||||
fi
|
||||
fi
|
||||
|
|
|
@ -81,8 +81,12 @@
|
|||
/*
|
||||
* We have assembly language implementation of atomic
|
||||
* stacks for the 32-bit sparc and x86 architectures only.
|
||||
*
|
||||
* Note: We ran into thread starvation problem with the
|
||||
* 32-bit sparc assembly language implementation of atomic
|
||||
* stacks, so we do not use it now. (Bugzilla bug 113740)
|
||||
*/
|
||||
#if !defined(sparc) || !defined(IS_64)
|
||||
#if !defined(sparc)
|
||||
#define _PR_HAVE_ATOMIC_CAS
|
||||
#endif
|
||||
#endif
|
||||
|
|
Загрузка…
Ссылка в новой задаче