Re: Libthr stable enough for testing

From: Mike Makonnen <mtm_at_identd.net>
Date: Thu, 29 May 2003 00:02:50 -0400
On Wed, 28 May 2003 21:57:35 -0500
Glenn Johnson <glennpj_at_charter.net> wrote:

> 
> It seems to be working fine on a UP machine but it locks up my SMP
> machine just trying to load a gnome session.  It leaves an image on the
> screen but the keyboard and mouse stop responding and I can not ssh into
> the box.

Please try the attached patch and let me know how it works.

Cheers.
-- 
Mike Makonnen  | GPG-KEY: http://www.identd.net/~mtm/mtm.asc
mtm_at_identd.net | D228 1A6F C64E 120A A1C9  A3AA DAE1 E2AF DBCC 68B9
mtm_at_FreeBSD.Org| FreeBSD - The Power To Serve

Index: lib/libthr/thread/thr_create.c
===================================================================
RCS file: /home/ncvs/src/lib/libthr/thread/thr_create.c,v
retrieving revision 1.9
diff -u -r1.9 thr_create.c
--- lib/libthr/thread/thr_create.c	26 May 2003 00:37:07 -0000	1.9
+++ lib/libthr/thread/thr_create.c	29 May 2003 03:58:47 -0000
_at__at_ -171,7 +171,6 _at__at_
 	new_thread->uniqueid = next_uniqueid++;
 
 	THREAD_LIST_LOCK;
-	_thread_critical_enter(new_thread);
 
 	/*
 	 * Check if the garbage collector thread
_at__at_ -202,8 +201,6 _at__at_
 
 	/* Return a pointer to the thread structure: */
 	(*thread) = new_thread;
-
-	_thread_critical_exit(new_thread);
 
 	/*
 	 * Start a garbage collector thread
Received on Wed May 28 2003 - 19:02:53 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:37:09 UTC