Re: svn commit: r213642 - in head/sys: kern sys

2010-10-09 Thread David Xu
Robert Watson wrote: On Sat, 9 Oct 2010, David Xu wrote: Create a global thread hash table to speed up thread lookup, use rwlock to protect the table. In old code, thread lookup is done with process lock held, to find a thread, kernel has to iterate through process and thread list, this is

Re: svn commit: r213642 - in head/sys: kern sys

2010-10-09 Thread Robert Watson
On Sat, 9 Oct 2010, David Xu wrote: Create a global thread hash table to speed up thread lookup, use rwlock to protect the table. In old code, thread lookup is done with process lock held, to find a thread, kernel has to iterate through process and thread list, this is quite inefficient. Wi

svn commit: r213642 - in head/sys: kern sys

2010-10-08 Thread David Xu
Author: davidxu Date: Sat Oct 9 02:50:23 2010 New Revision: 213642 URL: http://svn.freebsd.org/changeset/base/213642 Log: Create a global thread hash table to speed up thread lookup, use rwlock to protect the table. In old code, thread lookup is done with process lock held, to find a thread