Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Jun 2002 00:19:20 -0700 (PDT)
From:      Julian Elischer <julian@FreeBSD.org>
To:        Perforce Change Reviews <perforce@freebsd.org>
Subject:   PERFORCE change 12643 for review
Message-ID:  <200206100719.g5A7JKS27862@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=12643

Change 12643 by julian@julian_jules1 on 2002/06/10 00:18:57

	Duh.. don't clear the single-threading pointer until
	we finish single-threading.

Affected files ...

... //depot/projects/kse/sys/kern/kern_thread.c#59 edit

Differences ...

==== //depot/projects/kse/sys/kern/kern_thread.c#59 (text+ko) ====

@@ -527,7 +527,6 @@
 				    p->p_singlethread, td_runq);
 				p->p_suspcount--;
 				setrunqueue(p->p_singlethread);
-				p->p_singlethread = NULL;
 			}
 		}
 		/*
@@ -579,7 +578,6 @@
 		TAILQ_REMOVE(&p->p_suspended, p->p_singlethread, td_runq);
 		p->p_suspcount--;
 		setrunqueue(p->p_singlethread);
-		p->p_singlethread = NULL;
 	}
 }
 
@@ -593,6 +591,7 @@
 	p = td->td_proc;
 	PROC_LOCK_ASSERT(p, MA_OWNED);
 	p->p_flag &= ~P_STOPPED_SNGL;
+	p->p_singlethread = NULL;
 	thread_unsuspend(p);
 }
 

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe p4-projects" in the body of the message




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