Re: [kaffe] kaffe awt and thread management on MIPS

2005-10-03 Thread Gianluca Moro
 
   Recently, I am working on JIT and XScale series, and I have
 commited
 some Nano-X related fixes into cvs repository. Could you please take
 it
 a try with cvs head? However, thank you for sending and sharing the
 previous information about Nano-X AWT backend and threading on MIPS,
 which is another great platform Kaffe should support.


Hi Jim,

I found some problems with the last version of Kaffe
(1.1.6), in particular, the problem I found was:

java.lang.ExceptionInInitializerError
caused by: java.lang.NullPointerException
   at java.awt.Toolkit.fntInitFont (Toolkit.java:native)

Looking at the code, it seems that the function which initializa
the fonts return an id (an integer, i think) while the nativeData
field is declared as Pointer.

I think that this gives the exception.

I checked kaffe-1.1.5 and I saw tha nativeData was declared as Ptr:
compiling kaffe-1.1.5 and following the same steps I followed for
1.1.6,
I got a runnable kaffe which gave no exceptions.


I'll check, as soon as I get a working kaffe, the CVS head, 
but I think I'll need to change the Pointer
declaration to test it :-(

Anyway, thans so far for kaffe team support
bye
giammy


--
Gianluca Moro Visit  http://ilpinguino.altervista.org/
[EMAIL PROTECTED]  MyBlog http://blog.libero.it/giangiammy/



__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

___
kaffe mailing list
kaffe@kaffe.org
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


[kaffe] kaffe awt and thread management

2005-09-30 Thread Gianluca Moro
I'm testing kaffe in MIPS platform with Nano-X: my test program
open a windows, but do not show anything in it (while the same
program on Pc show the inner objects)

Tracing the code, I see that the function
kaffe-1.1.5/libraries/javalib/java/lang/VMThread.java:sleep() 
is calling the function vt.wait with parameter 250ms,
but it never returns.

From what I understand, that function calls 
/kaffe-1.1.5/libraries/clib/native/Object.c:java_lang_VMObject_wait,
whose debugging message gives me
0x10276010 (0x102622f8) waiting for 0x102622f8, 0

It seems that here the parameter (250ms) became 0:
do I understand correctly?
And if so, why (and where) the 250 value was lost?
(kaffe is ocmpiled with unix-jthreads)

thanks
giammy


--
Gianluca Moro Visit  http://ilpinguino.altervista.org/
[EMAIL PROTECTED]  MyBlog http://blog.libero.it/giangiammy/



__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

___
kaffe mailing list
kaffe@kaffe.org
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


Re: [kaffe] kaffe awt and thread management on MIPS

2005-09-30 Thread Gianluca Moro

Hi,

I compiled my kaffe on mips with the following 

./configure --with-jikes=no --with-engine=intrp --enable-pure-java-math
--without-esd --without-kaffe-x-awt --with-kaffe-nanox-awt
--with-rt-jar=/home/AMDgiammy/kaffe-1.1.5/libraries/javalib/rt.jar
--without-classpath-gtk-awt --enable-debug
--with-nanox-include=/usr/include/microwin
--with-nanox-library=/usr/lib --with-threads=unix-jthreads

perhaps the problem on threads in the MIPS porting
can be solved with ad appropriate configuration of
./configure or CFLAGS or so: I found in the web, for
example

setenv CFLAGS -G 0 -mno-abicalls -fno-pic -mcpu=r4300 -mips2 

but such a configuration fails in the configuration, while finding
the size of a void *.

Is there someone who compiled a more recent version of kaffe
(I'm working on 1.1.5), and have a working configuration?
(I doubt to be able to find a bug on the config/mips/* side :-)

thanks
giammy 

--- Dalibor Topic [EMAIL PROTECTED] wrote:

 Gianluca Moro wrote:
  I'm testing kaffe in MIPS platform with Nano-X: my test program
  open a windows, but do not show anything in it (while the same
  program on Pc show the inner objects)
  
  Tracing the code, I see that the function
  kaffe-1.1.5/libraries/javalib/java/lang/VMThread.java:sleep() 
  is calling the function vt.wait with parameter 250ms,
  but it never returns.
  
 From what I understand, that function calls 
 
 /kaffe-1.1.5/libraries/clib/native/Object.c:java_lang_VMObject_wait,
  whose debugging message gives me
  0x10276010 (0x102622f8) waiting for 0x102622f8, 0
  
  It seems that here the parameter (250ms) became 0:
  do I understand correctly?
  And if so, why (and where) the 250 value was lost?
  (kaffe is ocmpiled with unix-jthreads)
 
 Interesting. That might suggest there is a bug in the config/mips/*
 implementation of the ABI, or in the JNI code.
 
 You can try bulding Kaffe with libffi, which comes from gcc, and is
 in
 general up to date with different ABI changes. If it's a bug in the
 JNI
 code, you could look at fixing the compiler warnings in
 kaffe/kaffevm/jni* directory.
 
 cheers,
 dalibor topic
 


--
Gianluca Moro Visit  http://ilpinguino.altervista.org/
[EMAIL PROTECTED]  MyBlog http://blog.libero.it/giangiammy/



__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

___
kaffe mailing list
kaffe@kaffe.org
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


Re: [kaffe] kaffe awt and thread management (and libffi)

2005-09-30 Thread Gianluca Moro

 You can try bulding Kaffe with libffi, which comes from gcc, and is

just looking, but it seems that libffi has not been ported to
mips architecture :-(

anyway, thanks
giammy

--
Gianluca Moro Visit  http://ilpinguino.altervista.org/
[EMAIL PROTECTED]  MyBlog http://blog.libero.it/giangiammy/



__ 
Yahoo! Mail - PC Magazine Editors' Choice 2005 
http://mail.yahoo.com

___
kaffe mailing list
kaffe@kaffe.org
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


Re: [kaffe] kaffe awt and thread management on MIPS

2005-09-30 Thread jserv
On Fri, Sep 30, 2005 at 08:15:48AM -0700, Gianluca Moro wrote:
 
 Hi,
 
 I compiled my kaffe on mips with the following 
   [...]
 Is there someone who compiled a more recent version of kaffe
 (I'm working on 1.1.5), and have a working configuration?
 (I doubt to be able to find a bug on the config/mips/* side :-)

Hi Gianluca,

  Recently, I am working on JIT and XScale series, and I have commited
some Nano-X related fixes into cvs repository. Could you please take it
a try with cvs head? However, thank you for sending and sharing the
previous information about Nano-X AWT backend and threading on MIPS,
which is another great platform Kaffe should support.

cheers,
Jim Huang (jserv AT kaffe.org)

___
kaffe mailing list
kaffe@kaffe.org
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe