| Commit message (Collapse) | Author | Age | Files | Lines |
| ... | |
| |
|
|
|
|
|
| |
leak under some cases.
Notes:
svn path=/head/; revision=136735
|
| |
|
|
|
|
|
|
|
| |
before and after sleeping.
Reviewed by: deischen
Notes:
svn path=/head/; revision=136286
|
| |
|
|
| |
Notes:
svn path=/head/; revision=136227
|
| |
|
|
|
|
|
| |
of kse_thr_interrupt.
Notes:
svn path=/head/; revision=136223
|
| |
|
|
|
|
|
|
| |
allocated space, orignal code left red zone unallocated, but those space
can be allocated by user code, and result was providing no protection.
Notes:
svn path=/head/; revision=136190
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
the signal mask and pending signals of the calling thread. These
are stored in userland in libpthread.
There is a small race condition in this patch which could cause
problems if a signal arrives after setting the (kernel) signal
mask and before exec'ing. The thread's set of pending signals
also are not yet installed in the exec'd process. Both of these
will be corrected with the addition of a special syscall.
Reported & Tested by: Joost Bekkers <joost at jodocus dot org>
Reviewed by: julian, davidxu
Notes:
svn path=/head/; revision=135809
|
| |
|
|
| |
Notes:
svn path=/head/; revision=135735
|
| |
|
|
|
|
|
|
|
| |
defined. This makes libpthread usable on powerpc.
Approved by: grehan (mentor), deischen
Notes:
svn path=/head/; revision=135714
|
| |
|
|
| |
Notes:
svn path=/head/; revision=134326
|
| |
|
|
|
|
|
| |
Reviewed by: deischen
Notes:
svn path=/head/; revision=134319
|
| |
|
|
|
|
|
| |
Reviewed by: desichen
Notes:
svn path=/head/; revision=134115
|
| |
|
|
| |
Notes:
svn path=/head/; revision=133857
|
| |
|
|
| |
Notes:
svn path=/head/; revision=133806
|
| |
|
|
|
|
|
| |
2. Export symbols needed by debugger.
Notes:
svn path=/head/; revision=133801
|
| |
|
|
| |
Notes:
svn path=/head/; revision=133800
|
| |
|
|
| |
Notes:
svn path=/head/; revision=133756
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
a knob to force process scope threads. If the environment variable
LIBPTHREAD_PROCESS_SCOPE is set, force all threads to be process
scope threads regardless of how the application creates them. If
LIBPTHREAD_SYSTEM_SCOPE is set (forcing system scope threads), it
overrides LIBPTHREAD_PROCESS_SCOPE.
$ # To force system scope threads
$ LIBPTHREAD_SYSTEM_SCOPE=anything threaded_app
$ # To force process scope threads
$ LIBPTHREAD_PROCESS_SCOPE=anything threaded_app
Notes:
svn path=/head/; revision=133563
|
| |
|
|
|
|
|
| |
Reviewed by: deischen
Notes:
svn path=/head/; revision=133344
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
LIBPTHREAD_SYSTEM_SCOPE in the environment.
You can still force libpthread to be built in strictly 1:1 by
adding -DSYSTEM_SCOPE_ONLY to CFLAGS. This is kept for archs
that don't yet support M:N mode.
Requested by: rwatson
Reviewed by: davidxu
Notes:
svn path=/head/; revision=133269
|
| |
|
|
|
|
|
| |
Dicussed with: deischen
Notes:
svn path=/head/; revision=133047
|
| |
|
|
|
|
|
| |
kse_switchin syscall.
Notes:
svn path=/head/; revision=132928
|
| |
|
|
| |
Notes:
svn path=/head/; revision=132927
|
| |
|
|
|
|
|
| |
athlon64 machine.
Notes:
svn path=/head/; revision=132913
|
| |
|
|
|
|
|
| |
the time being.
Notes:
svn path=/head/; revision=132400
|
| |
|
|
|
|
|
| |
libthread_db. Both headers are included seperately.
Notes:
svn path=/head/; revision=132333
|
| |
|
|
| |
Notes:
svn path=/head/; revision=132128
|
| |
|
|
| |
Notes:
svn path=/head/; revision=132125
|
| |
|
|
| |
Notes:
svn path=/head/; revision=132124
|
| |
|
|
| |
Notes:
svn path=/head/; revision=132122
|
| |
|
|
| |
Notes:
svn path=/head/; revision=132121
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
1. Add global varible _libkse_debug, debugger uses the varible to identify
libpthread. when the varible is written to non-zero by debugger, libpthread
will take some special action at context switch time, it will check
TMDF_DOTRUNUSER flags, if a thread has the flags set by debugger, it won't
be scheduled, when a thread leaves KSE critical region, thread checks
the flag, if it was set, the thread relinquish CPU.
2. Add pq_first_debug to select a thread allowd to run by debugger.
3. Some names prefixed with _thr are renamed to _thread prefix.
which is allowed to run by debugger.
Notes:
svn path=/head/; revision=132120
|
| |
|
|
| |
Notes:
svn path=/head/; revision=132021
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
sigsuspend, thread shouldn't wait, in old code, it may be
ignored.
When a signal handler is invoked in sigsuspend, thread gets
two different signal masks, one is in thread structure,
sigprocmask() can retrieve it, another is in ucontext
which is a third parameter of signal handler, the former is
the result of sigsuspend mask ORed with sigaction's sa_mask
and current signal, the later is the mask in thread structure
before sigsuspend is called. After signal handler is called,
the mask in ucontext should be copied into thread structure,
and becomes CURRENT signal mask, then sigsuspend returns to
user code.
Reviewed by: deischen
Tested by: Sean McNeil <sean@mcneil.com>
Notes:
svn path=/head/; revision=130374
|
| |
|
|
|
|
|
| |
_amd64_restore_context().
Notes:
svn path=/head/; revision=130206
|
| |
|
|
|
|
|
| |
as stubs.
Notes:
svn path=/head/; revision=129206
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
mode (where the forked thread is the one and only thread and
is marked as system scope), set the system scope flag before
initializing the signal mask. This prevents trying to use
internal locks that haven't yet been initialized.
Reported by: Dan Nelson <dnelson at allantgroup.com>
Reviewed by: davidxu
Notes:
svn path=/head/; revision=128041
|
| |
|
|
|
|
|
| |
in return value not in errno.
Notes:
svn path=/head/; revision=127102
|
| |
|
|
| |
Notes:
svn path=/head/; revision=126952
|
| |
|
|
|
|
|
|
|
|
|
| |
These files had tags after the copyright notice,
inside the comment block (incorrect, removed),
and outside the comment block (correct).
Approved by: rwatson (mentor)
Notes:
svn path=/head/; revision=125668
|
| |
|
|
|
|
|
|
|
|
|
| |
semaphores. Also add cancellation cleanup handlers to keep semaphores
in a consistent state.
Submitted in part by: davidxu
Reviewed by: davidxu
Notes:
svn path=/head/; revision=125522
|
| |
|
|
| |
Notes:
svn path=/head/; revision=125468
|
| |
|
|
|
|
|
| |
points to sem_wait() and sem_timedwait(). Also make sem_post signal-safe.
Notes:
svn path=/head/; revision=125373
|
| |
|
|
|
|
|
|
| |
compatibility link from libc_r to libpthread (previously a link
from libc_r to libkse).
Notes:
svn path=/head/; revision=125258
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
thread library for i386, amd64, and ia64. For alpha
and sparc64 the library is not changed and remains libkse,
and links are installed so that libpthread -> libc_r.
The gcc -pthread option will be changed in a separate
commit so that it links to -lpthread instead of -lc_r.
Approved by: re@
Notes:
svn path=/head/; revision=125230
|
| |
|
|
|
|
|
|
|
| |
unlock the mutex, old code confuses some programs when it returns EINVAL.
Noticed by: bland
Notes:
svn path=/head/; revision=124606
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
on a rwlock while there are writers waiting. We normally favor
writers but when a reader already has at least one other read lock,
we favor the reader. We don't track all the rwlocks owned by a
thread, nor all the threads that own a rwlock -- we just keep
a count of all the read locks owned by a thread.
PR: 24641
Notes:
svn path=/head/; revision=124252
|
| |
|
|
|
|
|
| |
enable sigaltstack for scope system thread.
Notes:
svn path=/head/; revision=124095
|
| |
|
|
| |
Notes:
svn path=/head/; revision=124056
|
| |
|
|
| |
Notes:
svn path=/head/; revision=124055
|
| |
|
|
| |
Notes:
svn path=/head/; revision=123975
|