[no subject]

2002-01-28 Thread ²ÜÓ¿


Have you succeed in building kaffe for arm-linux,if yes,would you please tell
me how did you do?
thanx a lot





--http://www.eyou.com
--Îȶ¨¿É¿¿µÄÃâ·Ñµç×ÓÐÅÏä  ÓïÒôÓʼþ  Òƶ¯ÊéÇ©  ÈÕÀú·þÎñ  ÍøÂç´æ´¢...ÒÚÓÊδ¾¡





[no subject]

2002-01-11 Thread pieter


Hello,

i m scavenging the web for information regarding Kaffe's register allocation. So far, 
the loot is not that impressive. So here we go. I m looking for someone who is 
familiar with register allocation in the KaffeJit. Nothing fancy, i just need the 
broad perspective. 
If someone could fill in the blanks (and i apologize for my ignorance) :

Kaffe does register allocation on basic blocks, ie at the beginning of a new basic 
block b, all allocation is flushed, and an allocation for b is computed. Furthermore, 
kaffe uses virtual registers, that are mapped on the machine registers. The content of 
a virtual register is a slot. Now, the register struct has a pointer to a SlotInfo 
struct, which i assume is the current content of this register. But each SlotData 
struct also has a pointer to subsequent Slotdata structs...what is the meaning of 
this? And what's the role of the sequence struct? 

So, that's pretty much what i'm looking for. If someone could please help me out?

thanks in advance,

pieter bellens




No Subject

2001-11-03 Thread Alicia Mc Manus


Hey
I am profiling the kaffe vm using java but I would
also like to use jython, does Kaffe support other
languages or is built mainly with java in mind.  If so
can you tell what needs to be done to Kaffe inorder to
make it compatible with another language such as
jython.

Thanks a million
Alicia

__
Do You Yahoo!?
Find a job, post your resume.
http://careers.yahoo.com



No Subject

2001-10-29 Thread Krishna Prasad T


Hi,

I have done JNI_CreateJVM through an independent test program which works
fine where as the the same call from my OJI Plugin
crashes inside JVM. I copied all .la and .so , .jar files in my class path.
Still it is giving the same error.
Can anybody tell the solution ? Is there any known limitations for Kaffe for
enabling it for mozilla ?

Regards...
Prasad

-Original Message-
From: Patrick Tullmann [mailto:[EMAIL PROTECTED]]
Sent: Friday, October 26, 2001 3:42 AM
To: Krishna Prasad T
Cc: [EMAIL PROTECTED]
Subject: Re: OJI Plugin for Kaffe


> I am interested in plugging a small jvm into mozilla. For this I want to
> make a basic structure of OJI Plugin for Kaffe VM that can load an applet.
> For this When I invoke JNI_CreateJavaVM, from my OJI plugin, throws an
> UnsatisfiedLinkError as follows.

Turn on vmdebugging ('-vmdebug all').  Its probably failing to find a
.la file, or some of the basic system classes.  You might have to
hardcode vmdebug since you don't have a command line(?).  (Change
DEFAULT_DEBUG_MASK in kaffe/kaffevm/debug.c to DBG_ALL).

Also, you sent your message to '[EMAIL PROTECTED]', and I think
you meant to send it to '[EMAIL PROTECTED]'.

-Pat

- -  ---  ---  --   --  - -   -
Pat Tullmann   [EMAIL PROTECTED]
 With sufficient thrust, pigs fly just fine.




No Subject

2001-04-19 Thread yewang


Hi, 
When I cross-compile the kaffe, I met this error. Does someone know this?

Thanks for help!

Ye

/bin/sh ../../../libtool --mode=compile /usr/bin/mipsel-linux-gcc
-DHAVE_CONFIG_H -I. -I. -I../../../config -I../../../include   -DKVER='"1.0.6"'
-I/root/ClioLinux/kaffe/./kaffe/kaffevm
-I/root/ClioLinux/kaffe/./kaffe/kaffevm/systems/unix-jthreads -I../../../config
-I../../../include  -I/usr/local/include  -g -O2 -fno-omit-frame-pointer -c -o
ObjectStreamClassImpl.lo ObjectStreamClassImpl.c
/usr/bin/mipsel-linux-gcc -DHAVE_CONFIG_H -I. -I. -I../../../config
-I../../../include -DKVER=\"1.0.6\" -I/root/ClioLinux/kaffe/./kaffe/kaffevm
-I/root/ClioLinux/kaffe/./kaffe/kaffevm/systems/unix-jthreads -I../../../config
-I../../../include -I/usr/local/include -g -O2 -fno-omit-frame-pointer -c
ObjectStreamClassImpl.c -Wp,-MD,.deps/ObjectStreamClassImpl.TPlo -o
ObjectStreamClassImpl.o
In file included from ../../../kaffe/kaffevm/object.h:19,
 from ../../../kaffe/kaffevm/classMethod.h:16,
 from ObjectStreamClassImpl.c:15:
../../../include/java_lang_Object.h:13: redefinition of `struct
Hjava_lang_Object'
../../../include/java_lang_Object.h:15: redefinition of `Hjava_lang_Object'
../../../include/native.h:49: `Hjava_lang_Object' previously declared here
make[3]: *** [ObjectStreamClassImpl.lo] Error 1
make[3]: Leaving directory `/root/ClioLinux/kaffe/libraries/clib/native'


Hi,have a look at my homepage! :-)
http://www.auburn.edu/~wangye1
OK, I know it is not a best one, but I will make it better and better



RE: (no subject)

2000-05-30 Thread Koster, K.J.


> 
> I am interested in porting kaffe on windows NT system. I
> have downloaded the source code from kaffe.org. I am facing
> a lot of difficulty in using make. could u
> pl send me step by step implementation procedure for doing 
> this? Pl give me the reference or site where this info is
> available?
> 
Search the mailing list archives. This has been asked many times before. I
am sure that you will find many references to howto's and errors you may be
seeing.

Kees Jan

==
 Everyone is responsible for his own actions,
 and (people tend to forget this) the effect
 they have on others.



Re: (no subject)

2000-05-30 Thread Mo DeJong


On Tue, 30 May 2000, sumedhan wrote:

> 
> 
>   dear sir,
> I am interested in porting kaffe on windows NT system. I have downloaded
> 
> the source code from kaffe.org. I am facing a lot of difficulty in using
> 
> make. could u
> pl send me step by step implementation procedure for doing this? Pl give
> 
> me the reference or site where this info is available?
> sumedha.

The first thing you will need to do is install cygwin. Just grab
the "net installer" from one of the mirrors and run it to install
gcc and gdb on your NT system.

Download the installer.

ftp://ftp.freesoftware.com/pub/sourceware/cygwin/latest/setup.exe

Run it and then point it at a mirror like

ftp://ftp.freesoftware.com/pub/sourceware/cygwin/latest
ftp://ftp.sunsite.utk.edu/pub/cygwin/latest/

You should then be able to download and extract a tar ball
of Kaffe. Then you just cd to the kaffe directory run
./configure ; make ; make install and it should
build and install.

I have not tested this myself so you may run into problems
but that is how it "should" work.

Mo Dejong
Red Hat Inc.






(no subject)

2000-05-30 Thread sumedhan



  dear sir,
I am interested in porting kaffe on windows NT system. I have downloaded

the source code from kaffe.org. I am facing a lot of difficulty in using

make. could u
pl send me step by step implementation procedure for doing this? Pl give

me the reference or site where this info is available?
sumedha.






No Subject

2000-05-15 Thread Patrick Tullmann


Roy Wilson <[EMAIL PROTECTED]> pointed out to me in private
email that Kaffe starves out threads that are contending for a lock.
(I've attached his sample testcase --- somewhat modified).

This behavior results from Kaffe's lock queues being LIFO.  Making the
lock queue FIFO fixes his particular problem.  (I've attached the
patch, too.)  The patch makes the releaser of a lock wake up the
thread on the tail of the queue vs. the thread on the head of the
queue.

However, Godmar has pointed out to me that Kaffe's current
implementation is within the specification (the spec makes no fairness
or liveness guarantees).  Additionally, Kaffe breaks broken code
"faster".  If you really want fairness, then you'll have to implement
a queue of some sort above the Java primitives.  

Anyone else have thoughts on this (or references to JDC
tips/bugs/documentation)?

-Pat

- -  ---  ---  --   --  - -   -
Pat Tullmann   [EMAIL PROTECTED]
  This signature witticism intentionally left blank.

 --8<---  TakeResource.Java

class TakeResource {
  public static final int HOLD_DELAY = 3000;
  public static final int ACQUIRE_DELAY = 1000;
  public static final int THREADSTART_DELAY = 1000;

  public static void main (String argv[]) {
Resource resource = new Resource();
User[] user = new User[3];
user[0] = new User ("A  ", resource);
try { Thread.sleep(THREADSTART_DELAY); } 
catch (InterruptedException e){}
user[1] = new User (" B ", resource);
try { Thread.sleep(THREADSTART_DELAY); } 
catch (InterruptedException e){}
user[2] = new User ("  C", resource);
  }
}

class User extends Thread {
  private String id;
  private Resource resource;
  public User (String id, Resource resource) {
this.id = id;
this.resource = resource;
System.out.println ("User " + id + " started");
start();
  }
  public void run() {
while (true) {
  resource.take(id);
  try { Thread.sleep(TakeResource.ACQUIRE_DELAY); }
  catch (InterruptedException e){}
}
  }
}

class Resource {
  public synchronized void take (String id) {
System.out.println ("User " + id + " has resource");
try { Thread.sleep(TakeResource.HOLD_DELAY); } 
catch (InterruptedException e){}
  }
}

 --8<---  TakeResource.Java

 --8<---  Patch

Index: kaffe/kaffevm/locks.c
===
RCS file: /cvs/kaffe/kaffe/kaffe/kaffevm/locks.c,v
retrieving revision 1.35
diff -u -r1.35 locks.c
--- kaffe/kaffevm/locks.c   2000/04/12 17:41:06 1.35
+++ kaffe/kaffevm/locks.c   2000/05/15 18:59:11
@@ -248,12 +248,43 @@
 * time to tell them.
 */
if (lk->mux != 0) {
+#if 1 /* FAIRQUEUING */
+   /* Special case: a single element list */
+   if (unhand(lk->mux)->nextlk == NULL)
+   {
+   tid = lk->mux;
+   lk->mux = NULL;
+   }
+   else
+   {
+   Hjava_lang_Thread** prevTail;
+
+   prevTail = &lk->mux;
+
+   /* while there are still two more on the list */
+   while((unhand(*prevTail)->nextlk != NULL)
+ && (unhand(unhand(*prevTail)->nextlk)->nextlk) != NULL) {
+   prevTail = &(unhand(*prevTail)->nextlk);
+   }
+   
+   tid = unhand(*prevTail)->nextlk;
+   assert(unhand(tid)->nextlk == NULL);
+   unhand(*prevTail)->nextlk = NULL;
+
+   /* lk->mux is head of queue, don't update */
+   }
+
+   lk->holder = NULL;
+   putHeavyLock(lkp, lk);
+   ksemPut((Ksem*)(unhand(tid)->sem));
+#else
tid = lk->mux;
lk->mux = unhand(tid)->nextlk;
unhand(tid)->nextlk = 0;
lk->holder = 0;
putHeavyLock(lkp, lk);
ksemPut((Ksem*)(unhand(tid)->sem));
+#endif
}
/* If someone's waiting to be signaled keep the heavy in place */
else if (lk->cv != 0) {


 --8<---  Patch



No Subject

2000-02-25 Thread Olejnik Richard


Hello, I am looking for some tools which can measure the load of a JVM
and/or of the computer which  run that JVM.

Does any body have such soft or some information about that?

Thanks. Richard