PERFORCE change 126889 for review
John Birrell
jb at FreeBSD.org
Thu Sep 27 15:10:44 PDT 2007
http://perforce.freebsd.org/chv.cgi?CH=126889
Change 126889 by jb at jb_freebsd1 on 2007/09/27 22:09:44
Use the global variable that mi_startup() set to the size of
the extended thread structure size. This include struct td_sched
and struct kdtrace_thread, both of which are otherwise opaque
to the thread handling code.
There is a remaining issue regarding the DTrace thread-specific
variables that need to be zeroed on allocation. That'll
require another #define and the assumption that they are at
the beginning of struct kdtrace_thread.
Affected files ...
.. //depot/projects/dtrace/src/sys/kern/kern_thread.c#12 edit
Differences ...
==== //depot/projects/dtrace/src/sys/kern/kern_thread.c#12 (text+ko) ====
@@ -243,7 +243,7 @@
mtx_init(&tid_lock, "TID lock", NULL, MTX_DEF);
tid_unrhdr = new_unrhdr(PID_MAX + 1, INT_MAX, &tid_lock);
- thread_zone = uma_zcreate("THREAD", sched_sizeof_thread(),
+ thread_zone = uma_zcreate("THREAD", kdtrace_thread_size,
thread_ctor, thread_dtor, thread_init, thread_fini,
16 - 1, 0);
#ifdef KSE
More information about the p4-projects
mailing list