| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
| |
Reviewed by: mtm
|
|
|
|
|
|
| |
directory.
Special thanks to: valgrind
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
o Remove some code duplication between _thread_init(), which is run once
to initialize libthr and the intitial thread, and pthread_create(), which
initializes newly created threads, into a new function called from both
places: init_td_common()
o Move initialization of certain parts of libthr into a separate
function. These include:
- Active threads list and it's lock
- Dead threads list and it's lock & condition variable
- Naming and insertion of the initial thread into the
active threads list.
|
|
|
|
|
| |
PR: 44394
Submitted by: Craig Rodrigues <rodrige@attbi.com>
|
|
|
|
| |
PR: 60539
|
|
|
|
| |
Noticed by: wollman
|
|
|
|
|
|
| |
PR: 20528
Submitted by: bms (original version)
Requested by: mike (awhile ago)
|
|
|
|
|
| |
Submitted by: Lukas Ertl <l.ertl@univie.ac.at>
PR: docs/60457
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
รณ++ ABI document at http://www.codesourcery.com/cxx-abi/abi.html#dso-dtor
The ABI was initially defined for ia64, but GCC3 and Intel compilers
have adopted it on other platforms.
This is the patch from PR bin/59552 with a number of changes by
me.
PR: bin/59552
Submitted by: Bradley T Hughes (bhughes at trolltech dot com)
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
C++ ABI document at http://www.codesourcery.com/cxx-abi/abi.html#dso-dtor
The ABI was initially defined for ia64, but GCC3 and Intel compilers
have adopted it on other platforms.
This is the patch from PR bin/59552 with a number of changes by
me.
PR: bin/59552
Submitted by: Bradley T Hughes (bhughes at trolltech dot com)
|
|
|
|
| |
new fork() wrapper.
|
| |
|
| |
|
|
|
|
| |
follow declaration section.
|
|
|
|
| |
PR: 59291
|
|
|
|
| |
[last] character, not int).
|
| |
|
|
|
|
|
|
| |
work before anyways, and I didn't want to fix broken code I had no
way of testing. It was necessary however, in order to get rid of GIANT_LOCK.
Pthread priorities will have to wait a little longer to get fixed.
|
|
|
|
|
|
|
|
| |
problems: (1) The wrong flag was being checked for in the attribute
(2) The pthread's state was not being set to indicate it was
suspended.
Noticed by: Igor Sysoev <is@rambler-co.ru>
|
|
|
|
| |
ktrace(2).
|
| |
|
|
|
|
|
|
|
| |
call (pam_get_authtok() will return the previous token if try_first_pass
or use_first_pass is specified). Incidentally fix an ugly bug where the
buffer holding the prompt was freed immediately before use, instead of
after.
|
|
|
|
| |
Submitted by: Andreas Hauser <andy-freebsd@splashground.de>
|
|
|
|
| |
more work than the others). This should make most modules build with -O2.
|
|
|
|
| |
Removed a redundant clause.
|
|
|
|
| |
and thread list locks.
|
|
|
|
| |
Suggested by: wollman
|
|
|
|
|
| |
to e.g. correctly load all .ko.gz's I've tried, as opposed to messing
up trying to read section headers on some of them.
|
|
|
|
|
|
| |
PR: docs/60068
Submitted by: Ken Stailey
MFC after: 2 weeks
|
|
|
|
|
|
| |
- include ashldi3.c/ashrdi3.c from libc for UFS 64-bit arith
- pull in syncicache.c from libc, and define _STANDALONE for
loader usage
|
|
|
|
| |
- remove XXX normalization bit comment, code is correct.
|
|
|
|
|
| |
manpage and add a kse_switchin link. While here, list kse_thr_interrupt
before kse_wakeup in the MLINKS variable and the synopsis.
|
|
|
|
|
|
|
|
|
| |
likely to be non-zero. When leaving the cancellation point, check
the return value against -1 to see if cancellation should be
checked. While I'm here, make the same change to connect() just
to be consisitent.
Pointed out by: davidxu
|
| |
|
| |
|
|
|
|
|
|
| |
PTHREAD_NEW_STATE should work as expected now: a thread
marked PS_RUNNING will get sent a SIGTHR.
Still more cleanups necessary.
|
|
|
|
|
| |
thread on one of the mutex or condition variable queues is removed
from those queues before the real signal handler is called.
|
|
|
|
| |
table.
|
|
|
|
|
| |
around signals.
o Lock the process global signal action table.
|
| |
|
|
|
|
| |
avoids signal to be blocked when otherwise it can be handled.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
_thr_leave_cancellation_point to _thr_cancel_leave, add a parameter
to _thr_cancel_leave to indicate whether cancellation point should be
checked, this gives us an option to not check cancallation point if
a syscall successfully returns to avoid any leaks, current I have
creat(), open() and fcntl(F_DUPFD) to not check cancellation point
after they sucessfully returned.
Replace some members in structure kse with bit flags to same some
memory.
Conditionally compile THR_ASSERT to nothing if _PTHREAD_INVARIANTS is
not defined.
Inline some small functions in thr_cancel.c.
Use __predict_false in thr_kern.c for some executed only once code.
Reviewd by: deischen
|
| |
|
|
|
|
|
|
|
| |
Save __mbrtowc and __wcrtomb and restore them when changing back to
the cached locale.
Reported by: perky
|
|
|
|
|
|
|
| |
locks for [libc] spinlock implementation. This was previously backed
out because it exposed a bug in ia64 implementation.
OK'd by: marcel
|
|
|
|
|
| |
PR: 59765
Submitted by: Ryuichiro Imura <imura@ryu16.org>
|
|
|
|
|
|
|
|
|
| |
flags. We now create asynchronous contexts or syscall contexts only.
Syscall contexts differ from the minimal ABI dictated contexts by
having the scratch registers saved and restored because that's where
we keep the syscall arguments and syscall return values.
Since this change affects KSE, have it use kse_switchin(2) for the
"new" syscall context.
|
|
|
|
|
| |
Submitted by: Paul Vixie <paul@vix.com> / ISC
MFC After: 1 week
|
|
|
|
|
|
| |
Instead of just deleting it, turn the original page into a general
overview of the multibyte character conversion functions, somewhat
similar to stdio(3).
|
| |
|