Re: [kaffe] CLASSPATH init with Kaffe 1.0.7

2005-06-07 Thread Stage Iup - Fabrice & Frédéric
i'll try the 1.1.5 because i don't know how to get files from cvs
i'll tell you if 1.1.5 work

thanks2005/6/6, S. Meslin-Weber <[EMAIL PROTECTED]>:
Hi Fabrice,On Mon, Jun 06, 2005 at 05:10:20PM +0200, Stage Iup - Fabrice & Fr?d?ric wrote:> hi all> i'm actually triying to use kaffe 1.0.7Thank you for using Kaffe! Kaffe 1.0.7 is rather old, with many changes
and bugfixes having been comitted since its release.Would you try with 1.1.5 (or cvs HEAD if that doesn't work) and let usknow how it goes?Thanks,Steph--
Stephane Meslin-Weber Email: [EMAIL PROTECTED]Software Engineer Web: http://odonata.tangency.co.uk
BodyID:51961925.2.n.logpart (stored separately)-- CordialementFabrice & Frédéric--Plateforme Technologique ValenceTél : 04 75 41 88 58
___
kaffe mailing list
kaffe@kaffe.org
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


[kaffe] CLASSPATH init with Kaffe 1.1.5

2005-06-07 Thread Stage Iup - Fabrice & Frédéric
hi all
yesterday i've got a problem with kaffe 1.0.7
so as you said me, i've tried to use the 1.1.5 version downloaded form the ftp

i've succed in building it with the following command line
KAFFEH=/usr/local/kaffe/bin/kaffeh
CC=/usr/local/arm/3.0/bin/arm-linux-gcc
NM=/usr/local/arm/3.0/bin/arm-linux-nm
AR=/usr/local/arm/3.0/bin/arm-linux-ar ./configure --host=arm-linux
--build=i386-linux
--with-rt-jar=/home/stage/dev/kaffe/kaffe-1.1.5/tmp/rt.jar
--enable-pure-java-math  --without-classpath-gtk-awt
--with-threads=unix-jthreads --without-x --prefix=/opt/vmkaffe-1.1.5
--exec-prefix=/opt/vmkaffe-1.1.5 --disable-debug --with-engine=intrp
--disable-esdtest --disable-sound --disable-alsatest

but when i try to use the VM, it doesn't work

i've launche the -version option to test if the building was well done
[EMAIL PROTECTED] bin]$java -version
Kaffe Virtual Machine

Copyright (c) 1996-2004 Kaffe.org project contributors (please see
  the source code for a full list of contributors).  All rights reserved.
Portions Copyright (c) 1996-2002 Transvirtual Technologies, Inc.

The Kaffe virtual machine is free software, licensed under the terms of
the GNU General Public License.  Kaffe.org is a an independent, free software
community project, not directly affiliated with Transvirtual Technologies,
Inc.  Kaffe is a Trademark of Transvirtual Technologies, Inc.  Kaffe comes
with ABSOLUTELY NO WARRANTY.

Engine: Interpreter   Version: 1.1.5   Java Version: 1.1



and next, i've tried my helloWorld but having the classpath error
[EMAIL PROTECTED] bin]$java /root/helloworld
pc : [<4006236c>]    lr : [<40062340>]    Not tainted
sp : b984  ip : 40247bdc  fp : b9ac
r10: 40079aac  r9 : 000136d8  r8 : 00013670
r7 : 000136d8  r6 : 0005  r5 : 4007fde4  r4 : 1000
r3 : c000  r2 : b000  r1 : 4007fde4  r0 : 1000
Flags: nzCv  IRQs on  FIQs on  Mode USER_32  Segment user
Control: C000317F  Table: 21F3C000  DAC: 0015
pc : [<401f1924>]    lr : [<401f1848>]    Not tainted
sp : b928  ip : 40079ff4  fp : b968
r10: 40079aac  r9 : 4004f01c  r8 : 0001
r7 : 002630d8  r6 : 0080  r5 :   r4 : 002630d8
r3 :   r2 : 0020  r1 :   r0 : 002630d8
Flags: Nzcv  IRQs on  FIQs on  Mode USER_32  Segment user
Control: C000317F  Table: 21F3C000  DAC: 0015
Internal error: caught an unexpected exception.
Please check your CLASSPATH and your installation.
java/lang/NullPointerException
Aborted


does anyone have an idea about it?
-- with regardsFrédéric--Plateforme Technologique ValenceTél : 04 75 41 88 58
___
kaffe mailing list
kaffe@kaffe.org
http://kaffe.org/cgi-bin/mailman/listinfo/kaffe


[kaffe] I want to know kaffe's garbage collection processing modules.

2005-06-07 Thread toodulli
Hi all.
I am studying kaffe's virtual machine.
I analyze kaffe's source code, but so difficult.
I want to know kaffe's gc processing module.
If somebody have known this module, I want to know them.
please, I hope professional's help.





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


Re: [kaffe] kaffe -jar fails when environment variable CLASSPATH is set

2005-06-07 Thread Ito Kazumitsu
From: Michael Koch <[EMAIL PROTECTED]>
Subject: Re: [kaffe] kaffe -jar fails when environment variable CLASSPATH is set
Date: Tue, 7 Jun 2005 07:16:55 +0200

> CLASSPATH and -classpath have to get completely ignored when using -jar.
> The only valid CLASSPATH is the Class-Path entry in the manifest of the jar.

Oh, yes.  j2sdk-1_4_2-doc/docs/tooldocs/linux/java.html says so.

Then the code in main.c

   752  if (vmargs.classpath != NULL) {
   753  strcat (newcpath, path_separator);
   754  strcat (newcpath, vmargs.classpath);
   755  free (vmargs.classpath);
   756  }
   757
   758  /* set the new classpath */
   759  vmargs.classpath = newcpath;

should be

   752  if (vmargs.classpath != NULL) {
   755  free (vmargs.classpath);
   756  }
   757
   758  /* set the new classpath */
   759  vmargs.classpath = newcpath;

Anyway, the problem is that "free (vmargs.classpath);" fails here
if the environment variable CLASSPATH is set.  However meaningless
it may be,  CLASSPATH can be set when -jar is used.

My patch is expected to save this case.

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


[kaffe] GC bug: gcFree: Assertion `!!!"Attempt to explicitly free nonfixed object"' failed

2005-06-07 Thread Daniel Bonniot


Hi,

Here is a reproducible GC bug with kaffe HEAD. It's a regression, as it does 
not happen with 1.1.5.


This happens when compiling two small programs with the Nice compiler's 
testsuite. Therefore, you'll need the Nice compiler, precisely the nice.jar 
file. I've reproduced with several versions, including 0.9.10 which is in 
Debian at the moment. http://nice.sf.net/nice.jar should also do.


Here are the instructions to reproduce the bug. You need the bug.testsuite 
file as shown. Note that you need to specify the location of nice.jar twice.



$ cat bug.testsuite
/// PASS
  /// package a
  /// Toplevel
abstract class A implements javax.swing.Action {
  putValue(x, y) {}
}
  /// package b import a
  /// Toplevel
 void putValue(javax.swing.Action, String, T) =
  native void javax.swing.Action.putValue(String, Object);

public class Flow4JEditPartFactory implements javax.swing.Action {
  putValue(editPart, model) {}
}

/// PASS
  /// package lib
  /// Toplevel
public class A {
  public void foo() {}
}

  /// package a
  /// Toplevel
class A = native lib.A;
 A A() = native new lib.A();
 void foo(A) = native void lib.A.foo();

  /// package b import a
  {}

  /// package c import b
  new lib.A().foo();

$ /usr/local/src/kaffe/install/bin/kaffe -classpath /usr/share/java/nice.jar 
nice.tools.testsuite.TestNice -runtime /usr/share/java/nice.jar bug.testsuite

run test engine
  testsuite: bug.testsuite
kaffe-bin: ../../../../kaffe/kaffe/kaffevm/kaffe-gc/gc-incremental.c:1299: 
gcFree: Assertion `!!!"Attempt to explicitly free nonfixed object"' failed.
zsh: 13464 abort  /usr/local/src/kaffe/install/bin/kaffe -classpath 
/usr/share/java/nice.jar



$ /usr/local/src/kaffe/install/bin/kaffe -fullversion
...
Engine: Just-in-time v3   Version: 1.1.x-cvs   Java Version: 1.4
Heap defaults: minimum size: 5 MB, maximum size: 64 MB
Stack default size: 256 KB
Configuration/Compilation options:
)  Compile date : Mon Jun 6 22:42:52 CEST 2005
  Compile host : sauternes
  Install prefix   : /usr/local/src/kaffe/install
  Thread system: unix-pthreads
  Garbage Collector: kaffe-gc
  CC   : gcc
  CFLAGS   : -g -O2 -Wall -pthread -DENABLE_BINRELOC
  LDFLAGS  :
  ChangeLog head   : 2005-06-05  Ito Kazumitsu  <[EMAIL PROTECTED]>


Cheers,

Daniel


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


[kaffe] Inquiry: Semantics of slot_nowriteback in JIT

2005-06-07 Thread Ben Stephenson
Hello:

I'm playing with implementations of the some of the bytecodes.  While I
know that slot_nowriteback expands to the empty string for the
interpreter, it expands to a function call to _slot_nowriteback for the
JIT configuration.  The question is: what is the purpose of calling the
function?  Note that I am using the rather old kaffe-1.0.7 if that makes
any difference.

Any thoughts or pointers to some documentation would be appreciated.

Ben


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