Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 24 Jul 2004 09:30:11 GMT
From:      Julian Elischer <julian@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 58032 for review
Message-ID:  <200407240930.i6O9UBvt085251@repoman.freebsd.org>

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

Change 58032 by julian@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);



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