[kaffe] CVS kaffe (guilhem): Fixed an uninitialized mutex.

Kaffe CVS cvs-commits at kaffe.org
Fri Nov 12 10:20:48 PST 2004


PatchSet 5448 
Date: 2004/11/12 18:16:08
Author: guilhem
Branch: HEAD
Tag: (none) 
Log:
Fixed an uninitialized mutex.

        * kaffe/kaffevm/systems/unix-pthreads/thread-impl.c
        (jthread_createfirst): Initialize suspendLock.

Members: 
	ChangeLog:1.2994->1.2995 
	kaffe/kaffevm/systems/unix-pthreads/thread-impl.c:1.52->1.53 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.2994 kaffe/ChangeLog:1.2995
--- kaffe/ChangeLog:1.2994	Thu Nov 11 07:40:40 2004
+++ kaffe/ChangeLog	Fri Nov 12 18:16:08 2004
@@ -1,3 +1,8 @@
+2004-11-12  Guilhem Lavaux  <guilhem at kaffe.org>
+
+	* kaffe/kaffevm/systems/unix-pthreads/thread-impl.c
+	(jthread_createfirst): Initialize suspendLock.
+
 2004-11-11  Guilhem Lavaux  <guilhem at kaffe.org>
 
 	* configure, config/config.h.in: Regenerated.
Index: kaffe/kaffe/kaffevm/systems/unix-pthreads/thread-impl.c
diff -u kaffe/kaffe/kaffevm/systems/unix-pthreads/thread-impl.c:1.52 kaffe/kaffe/kaffevm/systems/unix-pthreads/thread-impl.c:1.53
--- kaffe/kaffe/kaffevm/systems/unix-pthreads/thread-impl.c:1.52	Wed Nov  3 19:25:54 2004
+++ kaffe/kaffe/kaffevm/systems/unix-pthreads/thread-impl.c	Fri Nov 12 18:16:13 2004
@@ -567,6 +567,7 @@
   nt->func   = NULL;
   nt->next   = NULL;
   nt->daemon = false;
+  pthread_mutex_init(&nt->suspendLock, NULL);
 
   /* Get stack boundaries. Note that this is just an approximation
    * which should cover all gc-relevant stack locations




More information about the kaffe mailing list