PERFORCE change 58032 for review

Julian Elischer julian at FreeBSD.org
Sat Jul 24 02:30:12 PDT 2004


http://perforce.freebsd.org/chv.cgi?CH=58032

Change 58032 by julian at julian_ref on 2004/07/24 09:29:49

	make a local cached value.

Affected files ...

.. //depot/projects/nsched/sys/kern/kern_kse.c#21 edit

Differences ...

==== //depot/projects/nsched/sys/kern/kern_kse.c#21 (text+ko) ====

@@ -896,10 +896,12 @@
 void
 thread_alloc_spare(struct thread *td)
 {
+	struct thread *spare;
+
 	if (td->td_standin)
 		return;
-	td->td_standin = thread_alloc();
-	bzero(&td->td_spare->td_startzero,
+	td->td_standin = spare =  thread_alloc();
+	bzero(&spare->td_startzero,
 	    (unsigned)RANGEOF(struct thread, td_startzero, td_endzero));
 	spare->td_proc = td->td_proc;
 	spare->td_ucred = crhold(td->td_ucred);


More information about the p4-projects mailing list