[kaffe] CVS kaffe (robilad): Fixed lockups on fedora core

Kaffe CVS cvs-commits at kaffe.org
Fri Oct 22 14:55:58 PDT 2004


PatchSet 5325 
Date: 2004/10/22 21:51:33
Author: robilad
Branch: HEAD
Tag: (none) 
Log:
Fixed lockups on fedora core

2004-10-22  Noa Resare  <noa at resare.com>

        * kaffe/kaffevm/systems/unix-pthreads/thread-impl.c:
        Move KaffeVM_unlinkNativeAndJavaThread() to after KGC_rmRef()

Members: 
	ChangeLog:1.2877->1.2878 
	kaffe/kaffevm/systems/unix-pthreads/thread-impl.c:1.49->1.50 

Index: kaffe/ChangeLog
diff -u kaffe/ChangeLog:1.2877 kaffe/ChangeLog:1.2878
--- kaffe/ChangeLog:1.2877	Fri Oct 22 19:32:25 2004
+++ kaffe/ChangeLog	Fri Oct 22 21:51:33 2004
@@ -1,3 +1,8 @@
+2004-10-22  Noa Resare  <noa at resare.com>
+
+	* kaffe/kaffevm/systems/unix-pthreads/thread-impl.c:
+	Move KaffeVM_unlinkNativeAndJavaThread() to after KGC_rmRef()
+
 2004-10-22  Eric Anholt  <eta at lclark.edu>
 
 	* libraries/clib/native/Double.c,
Index: kaffe/kaffe/kaffevm/systems/unix-pthreads/thread-impl.c
diff -u kaffe/kaffe/kaffevm/systems/unix-pthreads/thread-impl.c:1.49 kaffe/kaffe/kaffevm/systems/unix-pthreads/thread-impl.c:1.50
--- kaffe/kaffe/kaffevm/systems/unix-pthreads/thread-impl.c:1.49	Wed Oct 20 16:47:14 2004
+++ kaffe/kaffe/kaffevm/systems/unix-pthreads/thread-impl.c	Fri Oct 22 21:51:36 2004
@@ -732,8 +732,6 @@
 
 	unprotectThreadList(cur);
 
-	/* we are done using locks now. ok to destroy ksem */
-	KaffeVM_unlinkNativeAndJavaThread();
 
 	if ( nCached >= MAX_CACHED_THREADS ){
 	  break;
@@ -919,6 +917,7 @@
 {
   /* Remove the static reference so the thread context may be freed. */
   KGC_rmRef(threadCollector, nt);
+  KaffeVM_unlinkNativeAndJavaThread();
 
   pthread_detach( nt->tid);
   pthread_mutex_destroy (&nt->suspendLock);




More information about the kaffe mailing list