cvs commit: src/sys/kern kern_thread.c

David Xu davidxu at
Sun Feb 5 19:23:06 PST 2006

Robert Watson wrote:
> rwatson     2006-02-06 01:51:08 UTC
>   FreeBSD src repository
>   Modified files:
>     sys/kern             kern_thread.c 
>   Log:
>   When exiting a thread, submit any pending record.  Today, we don't
>   audit thread exit, but should that happen, this will prevent
>   unhappiness, as the thread exit system call will never return, and
>   hence not commit the record.
>   Pointed out by/with:    cognet
>   Obtained from:          TrustedBSD Project
>   Revision  Changes    Path
>   1.227     +4 -0      src/sys/kern/kern_thread.c
Won't this add more overhead to kick libpthread out of kernel ?
I always think today's kernel environment is no longer very suitable
for M:N, the better enviroment might be RELENG_4. :-)

I don't care this overhead because libthr does not more frequently 
create and destroy kthread than libpthread, and almost all popular
heavy weight applications cache their threads for reuse, they does
not rely on fast thread creation and destruction.

David Xu

More information about the cvs-src mailing list