Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Sep 2007 22:10:43 GMT
From:      John Birrell <jb@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 126889 for review
Message-ID:  <200709272210.l8RMAhl7081575@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=126889

Change 126889 by jb@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200709272210.l8RMAhl7081575>