From owner-p4-projects Thu Sep 5 23:45:11 2002 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 8C9DD37B407; Thu, 5 Sep 2002 23:45:05 -0700 (PDT) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 1C2CA37B400 for ; Thu, 5 Sep 2002 23:45:05 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 33BC243E3B for ; Thu, 5 Sep 2002 23:45:04 -0700 (PDT) (envelope-from mini@freebsd.org) Received: from freefall.freebsd.org (perforce@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g866j4JU083832 for ; Thu, 5 Sep 2002 23:45:04 -0700 (PDT) (envelope-from mini@freebsd.org) Received: (from perforce@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g866j394083826 for perforce@freebsd.org; Thu, 5 Sep 2002 23:45:03 -0700 (PDT) Date: Thu, 5 Sep 2002 23:45:03 -0700 (PDT) Message-Id: <200209060645.g866j394083826@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: perforce set sender to mini@freebsd.org using -f From: Jonathan Mini Subject: PERFORCE change 17135 for review To: Perforce Change Reviews Sender: owner-p4-projects@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG http://people.freebsd.org/~peter/p4db/chv.cgi?CH=17135 Change 17135 by mini@mini_stylus on 2002/09/05 23:44:57 Diff reduction. Affected files ... .. //depot/projects/kse/lib/libc/alpha/gen/makecontext.c#4 edit .. //depot/projects/kse/sys/kern/kern_thread.c#101 edit Differences ... ==== //depot/projects/kse/lib/libc/alpha/gen/makecontext.c#4 (text+ko) ==== @@ -32,8 +32,8 @@ #include #include +#include #include -#include /* Prototypes */ ==== //depot/projects/kse/sys/kern/kern_thread.c#101 (text+ko) ==== @@ -73,7 +73,7 @@ SYSCTL_INT(_kern_threads, OID_AUTO, allocated, CTLFLAG_RD, &allocated_threads, 0, "Number of threads in zone."); -static int oiks_debug = 1; /* 0 disable, 1 printf, 2 enter debugger */ +static int oiks_debug = 0; /* 0 disable, 1 printf, 2 enter debugger */ SYSCTL_INT(_kern_threads, OID_AUTO, oiks, CTLFLAG_RW, &oiks_debug, 0, "OIKS thread debug"); @@ -456,7 +456,9 @@ ke->ke_tdspare = NULL; } else { mtx_unlock_spin(&sched_lock); + mtx_lock(&Giant); td2 = thread_alloc(); + mtx_unlock(&Giant); mtx_lock_spin(&sched_lock); } CTR3(KTR_PROC, "thread_schedule_upcall: thread %p (pid %d, %s)", To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message