#
346156 |
|
12-Apr-2019 |
kib |
MFC r345703: Fix initial exec TLS mode for dynamically loaded shared objects.
|
#
331722 |
|
29-Mar-2018 |
eadler |
Revert r330897:
This was intended to be a non-functional change. It wasn't. The commit message was thus wrong. In addition it broke arm, and merged crypto related code.
Revert with prejudice.
This revert skips files touched in r316370 since that commit was since MFCed. This revert also skips files that require $FreeBSD$ property changes.
Thank you to those who helped me get out of this mess including but not limited to gonzo, kevans, rgrimes.
Requested by: gjb (re)
|
#
330897 |
|
14-Mar-2018 |
eadler |
Partial merge of the SPDX changes
These changes are incomplete but are making it difficult to determine what other changes can/should be merged.
No objections from: pfg
|
#
319430 |
|
01-Jun-2017 |
vangyzen |
MFC r318539 r318580 r318581 r318584 r318749 r318952 r318953 r318955
libthr: fix warnings at WARNS=6
Fix warnings about the following when WARNS=6 (which I will commit soon):
- casting away const - no previous 'extern' declaration for non-static variable - others as explained by #pragmas and comments - unused parameters
libthr: disable thread-safety warnings
These warnings don't make sense for code that implements the locking primitives.
libthr: change CHECK_AND_INIT_RWLOCK to an inline function
This was prompted by a compiler warning about 'ret' shadowing a local variable in the callers of the macro.
libthr: Use CLI flags instead of pragmas to disable warnings
People tweaking the build system or compilers tend to look into the Makefile and not into the source. Having some warning controls in the Makefile and some in the source code is surprising.
Pragmas have the advantage that they leave the warnings enabled for more code, but that advantage isn't very relevant in these cases.
libthr: fix warnings from GCC when WARNS=6
Fix warnings about: - redundant declarations - a local variable shadowing a global function (dlinfo) - an old-style function definition (with an empty parameter list) - a variable that is possibly used uninitialized
libthr: prevent setcontext() from masking SIGTHR
__thr_setcontext() mistakenly tested for the presence of SIGCANCEL in its local ucontext_t instead of the parameter. Therefore, if a thread calls setcontext() with a context whose signal mask contains SIGTHR (a.k.a. SIGCANCEL), that signal will be blocked, preventing the thread from being cancelled or suspended.
Sponsored by: Dell EMC
|
#
302408 |
|
07-Jul-2016 |
gjb |
Copy head@r302406 to stable/11 as part of the 11.0-RELEASE cycle. Prune svn:mergeinfo from the new branch, as nothing has been merged here.
Additional commits post-branch will follow.
Approved by: re (implicit) Sponsored by: The FreeBSD Foundation |
#
297706 |
|
08-Apr-2016 |
kib |
Use __FBSDID() for .c files from lib/libthr/thread.
Sponsored by: The FreeBSD Foundation
|
#
231503 |
|
11-Feb-2012 |
davidxu |
Make code more stable by checking NULL pointers.
|
#
231106 |
|
07-Feb-2012 |
davidxu |
Plug a memory leak. When a cached thread is reused, don't clear sleep queue pointers, just reuse it.
PR: 164828 MFC after: 1 week
|
#
216641 |
|
22-Dec-2010 |
davidxu |
MFp4:
- Add flags CVWAIT_ABSTIME and CVWAIT_CLOCKID for umtx kernel based condition variable, this should eliminate an extra system call to get current time.
- Add sub-function UMTX_OP_NWAKE_PRIVATE to wake up N channels in single system call. Create userland sleep queue for condition variable, in most cases, thread will wait in the queue, the pthread_cond_signal will defer thread wakeup until the mutex is unlocked, it tries to avoid an extra system call and a extra context switch in time window of pthread_cond_signal and pthread_mutex_unlock.
The changes are part of process-shared mutex project.
|
#
212536 |
|
13-Sep-2010 |
davidxu |
Convert thread list lock from mutex to rwlock.
|
#
164583 |
|
24-Nov-2006 |
davidxu |
Eliminate atomic operations in thread cancellation functions, it should reduce overheads of cancellation points.
|
#
162061 |
|
06-Sep-2006 |
davidxu |
Replace internal usage of struct umtx with umutex which can supports real-time if we want, no functionality is changed.
|
#
160426 |
|
17-Jul-2006 |
delphij |
Unexpand two TAILQ_FOREACH_SAFE cases.
Ok'ed by: davidxu
|
#
157457 |
|
04-Apr-2006 |
davidxu |
WARNS level 4 cleanup.
|
#
157079 |
|
24-Mar-2006 |
davidxu |
set an upper limit for thread structures which can be allocated.
|
#
155330 |
|
05-Feb-2006 |
davidxu |
Now, thread name is stored in kernel, userland no longer has to keep it.
|
#
154055 |
|
05-Jan-2006 |
davidxu |
Refine thread suspension code, now thread suspension is a blockable operation, the caller is blocked util target threads are really suspended, also avoid suspending a thread when it is holding a critical lock. Fix a bug in _thr_ref_delete which tests a never set flag.
|
#
144921 |
|
12-Apr-2005 |
davidxu |
Add debugger event reporting support, current only TD_CREATE and TD_DEATH events are reported.
|
#
144736 |
|
07-Apr-2005 |
davidxu |
Adjust hash function for smaller pthread structure size.
|
#
144711 |
|
06-Apr-2005 |
davidxu |
Remove unique id field which is no longer used by debugger.
|
#
144518 |
|
01-Apr-2005 |
davidxu |
Import my recent 1:1 threading working. some features improved includes: 1. fast simple type mutex. 2. __thread tls works. 3. asynchronous cancellation works ( using signal ). 4. thread synchronization is fully based on umtx, mainly, condition variable and other synchronization objects were rewritten by using umtx directly. those objects can be shared between processes via shared memory, it has to change ABI which does not happen yet. 5. default stack size is increased to 1M on 32 bits platform, 2M for 64 bits platform. As the result, some mysql super-smack benchmarks show performance is improved massivly.
Okayed by: jeff, mtm, rwatson, scottl
|