diff options
author | kib <kib@FreeBSD.org> | 2008-12-02 11:58:31 +0000 |
---|---|---|
committer | kib <kib@FreeBSD.org> | 2008-12-02 11:58:31 +0000 |
commit | af7a67c13ca3d0aea828b69672928819ce3cafc1 (patch) | |
tree | b23ed20daecc73be355f5025496a06fa66e978c8 /lib/libthr/thread/thr_fork.c | |
parent | ade687809e3b9101f41cc7ab57fee5e8056b7381 (diff) | |
download | FreeBSD-src-af7a67c13ca3d0aea828b69672928819ce3cafc1.zip FreeBSD-src-af7a67c13ca3d0aea828b69672928819ce3cafc1.tar.gz |
Provide custom simple allocator for rtld locks in libthr. The allocator
does not use any external symbols, thus avoiding possible recursion into
rtld to resolve symbols, when called.
Reviewed by: kan, davidxu
Tested by: rink
MFC after: 1 month
Diffstat (limited to 'lib/libthr/thread/thr_fork.c')
-rw-r--r-- | lib/libthr/thread/thr_fork.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libthr/thread/thr_fork.c b/lib/libthr/thread/thr_fork.c index 0288dc2..bc410d1 100644 --- a/lib/libthr/thread/thr_fork.c +++ b/lib/libthr/thread/thr_fork.c @@ -106,7 +106,7 @@ _fork(void) pid_t ret; int errsave; int unlock_malloc; - int rtld_locks[16]; + int rtld_locks[MAX_RTLD_LOCKS]; if (!_thr_is_inited()) return (__sys_fork()); |