[Fwd: running Java applications within kaffe (Re: [kaffe] shutdownHook
changes broke the build)]
Guilhem Lavaux
guilhem.lavaux@free.fr
Wed Jul 9 01:29:03 2003
This is a multi-part message in MIME format.
--------------012FB8BB3D4ADA489CB30366
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Sorry, I used another e-mail address. I resubmit it.
--------------012FB8BB3D4ADA489CB30366
Content-Type: message/rfc822
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
X-Mozilla-Status2: 00000000
Message-ID: <3F0BD23A.82C84C7C@free.fr>
Date: Wed, 09 Jul 2003 09:28:42 +0100
From: Guilhem Lavaux <gxl@astro.ox.ac.uk>
X-Mailer: Mozilla 4.8 [en] (X11; U; Linux 2.4.18-27.7.x i686)
X-Accept-Language: en
MIME-Version: 1.0
To: Dalibor Topic <robilad@yahoo.com>
CC: Timothy Stack <stack@cs.utah.edu>, kaffe@kaffe.org
Subject: Re: running Java applications within kaffe (Re: [kaffe] shutdownHook
changes broke the build)
References: <20030709072836.35690.qmail@web10002.mail.yahoo.com>
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Dalibor Topic wrote:
> hi Guilhem,
>
> I've just checked in a patch that fixed the remaining compilation problems for
> me. It now builds fine for me, but the shutdown hook test still fails.
>
> My patch changed the compile method of kaffe/tools/compiler/Compiler_kjc and
> Compiler_pizza classes to return false only when an exception occurs. But I
> don't think that kjc or pizza always throw an exception before they fail to
> compile some code, so my implementation of compile() smells funny ;) On the
> other hand, I don't think there is a way to get the exit codes of applications
> ra within kaffe as their calls to Runtime.exit() should shutdown the whole
> virtual machine.
>
See you commit it ! You are quick :-).
>
> so could you try again with the latest set of sources, and check if it makes
> things any better?
>
Hmmm , I cannot test it until this evening. I'll tell you later.
>
> Anyway, I'm not sure if running several java applications within a single kaffe
> instance is a good idea, as long as kaffe doesn't implement some of process
> separation features from JanosVM.
>
Maybe I should have a look at it ...
>
> So for example, what happens when an application calls runtime.exit()? It
> shouldn't shut down the whole machine, unless it's the only application
> running. It shouldn't run the finalizers of objects not belonging to it, and
> only run its own shutdown hooks. The exit code should be stored for later
> retrieval. I assume Tim could come up with further pitfalls. ;)
>
> The apperently simple, but slow & fat way out is to just use Runtime.exec to
> start another instance of a JVM. What do you think?
>
Well, running Runtime.exec is obviously the securest of all possibilities but it should
be great also to have embedded Process directly in the VM, again I should have a look
at JanosVM.
>
> cheers,
> dalibor topic
Bye,
Guilhem.
--------------012FB8BB3D4ADA489CB30366--