[kaffe] Eclipse locked with new lock API

jserv at linux2.cc.ntu.edu.tw jserv at linux2.cc.ntu.edu.tw
Fri Mar 11 16:39:57 PST 2005


Dear all,

  I just build fresh Kaffe with the new lock API committed by
Guilhem Lavaux. However, it failed to get compiled, and then
I attempt to fix that with the following patch:

$ cvs diff -up kaffe/kaffevm/locks.c 
Index: kaffe/kaffevm/locks.c
===================================================================
RCS file: /cvs/kaffe/kaffe/kaffe/kaffevm/locks.c,v
retrieving revision 1.57
diff -u -p -r1.57 locks.c
--- kaffe/kaffevm/locks.c	11 Mar 2005 16:41:52 -0000	1.57
+++ kaffe/kaffevm/locks.c	12 Mar 2005 00:36:18 -0000
@@ -218,6 +218,7 @@ slowLockMutex(iLock** lkp, iLock *heavyL
   iLock* volatile lk;
   jthread_t cur = KTHREAD(current) ();
   threadData *tdata;
+  static timespent lockTime;	/* for measuring the heavy slowlocks */
   
 DBG(SLOWLOCKS,
     dprintf("slowLockMutex(lk=%p, th=%p)\n",

But I found the build of Kaffe encountered the locked Eclipse problem
when the first screen show up, and I couldn't generate any mouse / 
keyboard events at all. The configuration of my build are:
  . x86 / JIT3
  . unix-pthread
  . kaffe-gc

I test with Eclipse 3.0.1. Could you please help me to fix this
issue?

Sincerely,
Jim Huang




More information about the kaffe mailing list