svn commit: r239609 - head/lib/libthr/thread
David Xu
davidxu at FreeBSD.org
Thu Aug 23 05:15:15 UTC 2012
Author: davidxu
Date: Thu Aug 23 05:15:15 2012
New Revision: 239609
URL: http://svn.freebsd.org/changeset/base/239609
Log:
Eliminate redundant code, _thr_spinlock_init() has already been called
in init_private(), don't call it again in fork() wrapper.
Modified:
head/lib/libthr/thread/thr_fork.c
Modified: head/lib/libthr/thread/thr_fork.c
==============================================================================
--- head/lib/libthr/thread/thr_fork.c Thu Aug 23 04:57:56 2012 (r239608)
+++ head/lib/libthr/thread/thr_fork.c Thu Aug 23 05:15:15 2012 (r239609)
@@ -200,9 +200,6 @@ _fork(void)
_rtld_atfork_post(rtld_locks);
_thr_setthreaded(0);
- /* reinitialize libc spinlocks. */
- _thr_spinlock_init();
-
/* reinitalize library. */
_libpthread_init(curthread);
More information about the svn-src-all
mailing list