Date: Sat, 7 Sep 2002 21:55:54 -0700 (PDT) From: Jonathan Mini <mini@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 17224 for review Message-ID: <200209080455.g884tstv046825@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://people.freebsd.org/~peter/p4db/chv.cgi?CH=17224 Change 17224 by mini@mini_stylus on 2002/09/07 21:55:17 Tighten our grab for Giant from around UMA to just around the vm object allocation. Affected files ... .. //depot/projects/kse/sys/kern/kern_thread.c#107 edit Differences ... ==== //depot/projects/kse/sys/kern/kern_thread.c#107 (text+ko) ==== @@ -155,7 +155,9 @@ ("size mismatch: %d != %d\n", size, (int)sizeof(struct thread))); td = (struct thread *)mem; + mtx_lock(&Giant); pmap_new_thread(td); + mtx_unlock(&Giant); cpu_thread_setup(td); cached_threads++; /* XXXSMP */ allocated_threads++; /* XXXSMP */ @@ -456,9 +458,7 @@ 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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200209080455.g884tstv046825>