aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/sio/sio.c
diff options
context:
space:
mode:
authorJohn Polstra <jdp@FreeBSD.org>1999-12-27 04:44:04 +0000
committerJohn Polstra <jdp@FreeBSD.org>1999-12-27 04:44:04 +0000
commitd3980376e8c139e07958914c5184ab37463e4818 (patch)
tree606182fa01badd88b4cbbb7961dabdce2d484c9d /sys/dev/sio/sio.c
parentfdba49eb7e1ae8f4835266f8c51329a5da027da3 (diff)
downloadsrc-d3980376e8c139e07958914c5184ab37463e4818.tar.gz
src-d3980376e8c139e07958914c5184ab37463e4818.zip
Add a new function dllockinit() for registering thread locking
functions to be used by the dynamic linker. This can be called by threads packages at start-up time. I will add the call to libc_r soon. Also add a default locking method that is used up until dllockinit() is called. The default method works by blocking SIGVTALRM, SIGPROF, and SIGALRM in critical sections. It is based on the observation that most user-space threads packages implement thread preemption with one of these signals (usually SIGVTALRM). The dynamic linker has never been reentrant, but it became less reentrant in revision 1.34 of "src/libexec/rtld-elf/rtld.c". Starting with that revision, multiple threads each doing lazy binding could interfere with each other. The usual symptom was that a symbol was falsely reported as undefined at start-up time. It was rare but not unseen. This commit fixes it.
Notes
Notes: svn path=/head/; revision=55122
Diffstat (limited to 'sys/dev/sio/sio.c')
0 files changed, 0 insertions, 0 deletions