Re: Some questions about the architecture

2005-10-31 Thread Tim Ellison
Archie Cobbs wrote: > Tim Ellison wrote: > > Off tanget, but IMHO this is not strictly true: it depends on whether > VM native code relies on finalize() to free up its (non-heap) memory. > Here's an exmaple of this: > > http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=479718

Re: Some questions about the architecture

2005-10-31 Thread Archie Cobbs
Tim Ellison wrote: Off tanget, but IMHO this is not strictly true: it depends on whether VM native code relies on finalize() to free up its (non-heap) memory. Here's an exmaple of this: http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4797189 That problem doesn't occur with GNU Classpath si

Re: Some questions about the architecture

2005-10-31 Thread Tim Ellison
Archie Cobbs wrote: > Mark Wielaard wrote: > >> On Thu, 2005-10-20 at 17:56 -0500, Archie Cobbs wrote: >> >>> Off tanget, but IMHO this is not strictly true: it depends on whether >>> VM native code relies on finalize() to free up its (non-heap) memory. >>> Here's an exmaple of this: >>> >>> htt

Re: Some questions about the architecture

2005-10-30 Thread Archie Cobbs
Mark Wielaard wrote: On Thu, 2005-10-20 at 17:56 -0500, Archie Cobbs wrote: Off tanget, but IMHO this is not strictly true: it depends on whether VM native code relies on finalize() to free up its (non-heap) memory. Here's an exmaple of this: http://bugs.sun.com/bugdatabase/view_bug.do?bug_i

Re: Some questions about the architecture

2005-10-29 Thread Mark Wielaard
Hi Rodrigo, On Fri, 2005-10-21 at 18:07 -0200, Rodrigo Kumpera wrote: > What happens when an exception is uncaught is, more or less, the following > > -The exception is passed to the thread's uncaughtExceptionHandler > -The exception is passed to the ThreadGroup's uncaughtException method > -The

Re: Some questions about the architecture

2005-10-29 Thread Mark Wielaard
On Thu, 2005-10-20 at 17:56 -0500, Archie Cobbs wrote: > Off tanget, but IMHO this is not strictly true: it depends on whether > VM native code relies on finalize() to free up its (non-heap) memory. > Here's an exmaple of this: > >http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4797189 Tha

Re: Some questions about the architecture

2005-10-22 Thread Robin Garner
> Robin Garner wrote: >> GC is triggered in two cases: 1) the user code calls System.gc(). 2) >> the >> heap fills up (for some suitable definition of 'fills up'). There is >> never any need for the VM code to call the garbage collector. > > Off tanget, but IMHO this is not strictly true: it depe

Re: Some questions about the architecture

2005-10-22 Thread Robin Garner
> > Isn't all that already adressed by the VM/GC and GC/VM interfaces posted > by Weldon Washburn [1], [2] some time ago? (I'm not sure if this is > helpful, I didn't really read the BootJVM code, so please don't hit me > if I'm wrong). If not It might be helpful starting a WIKI - page which > desc

Re: Some questions about the architecture

2005-10-21 Thread Rodrigo Kumpera
On 10/21/05, Apache Harmony Bootstrap JVM <[EMAIL PROTECTED]> wrote: > > > > -Original Message- > > From: Rodrigo Kumpera <[EMAIL PROTECTED]> > > Sent: Oct 21, 2005 12:08 PM > > To: harmony-dev@incubator.apache.org > > Subject: Re: Som

Re: Some questions about the architecture

2005-10-21 Thread Apache Harmony Bootstrap JVM
> -Original Message- > From: Rodrigo Kumpera <[EMAIL PROTECTED]> > Sent: Oct 21, 2005 12:08 PM > To: harmony-dev@incubator.apache.org > Subject: Re: Some questions about the architecture > ...snip... > > I agree that the verifier should look into this, but

Re: Some questions about the architecture

2005-10-21 Thread Rodrigo Kumpera
On 10/21/05, Tom Tromey <[EMAIL PROTECTED]> wrote: > > "Dan" == Apache Harmony Bootstrap JVM <[EMAIL PROTECTED]> writes: > > Dan> I agree that the verifier should look into this, but what happens if > Dan> you get a divide by zero error? Or a null pointer exception? These > Dan> are not avail

Re: Some questions about the architecture

2005-10-21 Thread Tom Tromey
> "Dan" == Apache Harmony Bootstrap JVM <[EMAIL PROTECTED]> writes: Dan> I agree that the verifier should look into this, but what happens if Dan> you get a divide by zero error? Or a null pointer exception? These Dan> are not available to the verifier, but are runtime conditions that Dan> d

Re: Some questions about the architecture

2005-10-21 Thread Rodrigo Kumpera
On 10/21/05, Apache Harmony Bootstrap JVM <[EMAIL PROTECTED]> wrote: > > Comments below. > > -Original Message- > From: Rodrigo Kumpera <[EMAIL PROTECTED]> > Sent: Oct 20, 2005 1:49 PM > To: harmony-dev@incubator.apache.org > Subject: Re: Some question

Re: Some questions about the architecture

2005-10-21 Thread Apache Harmony Bootstrap JVM
Comments below. -Original Message- From: Rodrigo Kumpera <[EMAIL PROTECTED]> Sent: Oct 20, 2005 1:49 PM To: harmony-dev@incubator.apache.org Subject: Re: Some questions about the architecture ...snip... > > > By IP I mean Intruction Pointer, the EIP register in x86 f.e

Re: Some questions about the architecture

2005-10-21 Thread Geir Magnusson Jr.
al Message- From: Robin Garner <[EMAIL PROTECTED]> Sent: Oct 20, 2005 3:08 PM To: Apache Harmony Bootstrap JVM <[EMAIL PROTECTED]> Cc: harmony-dev@incubator.apache.org Subject: Re: Some questions about the architecture Robin, Rodrigo, Perhaps the two of you could get your heads together

Re: Some questions about the architecture

2005-10-21 Thread David Tanzer
On Fri, 2005-10-21 at 06:08 +1000, Robin Garner wrote: > [Snip] > > What the VM needs to do is to provide services that allow the GC to do its > job. These are at core: > - A way to allocate bulk memory (eg mmap) > - A way to enumerate roots (this is where stack scanning happens) > - A schedulin

Re: Some questions about the architecture

2005-10-20 Thread Apache Harmony Bootstrap JVM
-Original Message- From: Robin Garner <[EMAIL PROTECTED]> Sent: Oct 20, 2005 3:08 PM To: Apache Harmony Bootstrap JVM <[EMAIL PROTECTED]> Cc: harmony-dev@incubator.apache.org Subject: Re: Some questions about the architecture > Robin, Rodrigo, > > Perhaps the two

Re: Some questions about the architecture

2005-10-20 Thread Archie Cobbs
Robin Garner wrote: GC is triggered in two cases: 1) the user code calls System.gc(). 2) the heap fills up (for some suitable definition of 'fills up'). There is never any need for the VM code to call the garbage collector. Off tanget, but IMHO this is not strictly true: it depends on whether

Re: Some questions about the architecture

2005-10-20 Thread Robin Garner
1:49 PM >> To: harmony-dev@incubator.apache.org, Apache Harmony Bootstrap JVM >> <[EMAIL PROTECTED]> >> Subject: Re: Some questions about the architecture >> >> On 10/19/05, Apache Harmony Bootstrap JVM <[EMAIL PROTECTED]> wrote: >> > > ...snip... >&g

Re: Some questions about the architecture

2005-10-20 Thread Rodrigo Kumpera
you think? > > > Further comments follow... > > -Original Message- > From: Rodrigo Kumpera <[EMAIL PROTECTED]> > Sent: Oct 19, 2005 4:49 PM > To: harmony-dev@incubator.apache.org > Subject: Re: Some questions about the architecture > > On 1

Re: Some questions about the architecture

2005-10-20 Thread Apache Harmony Bootstrap JVM
TED]> Sent: Oct 19, 2005 4:49 PM To: harmony-dev@incubator.apache.org Subject: Re: Some questions about the architecture On 10/19/05, Apache Harmony Bootstrap JVM <[EMAIL PROTECTED]> wrote: > > > -Original Message- > From: Rodrigo Kumpera <[EMAIL PROTECTED]> >

Re: Some questions about the architecture

2005-10-19 Thread Rodrigo Kumpera
CTED]> > Subject: Re: Some questions about the architecture > > On 10/19/05, Apache Harmony Bootstrap JVM <[EMAIL PROTECTED]> wrote: > > > > Rodrigo, > > > > At some point, _somebody_ has to wait on I/O. I agree > > that this is not the most efficient

Re: Some questions about the architecture

2005-10-19 Thread Apache Harmony Bootstrap JVM
-Original Message- From: Rodrigo Kumpera <[EMAIL PROTECTED]> Sent: Oct 19, 2005 1:49 PM To: harmony-dev@incubator.apache.org, Apache Harmony Bootstrap JVM <[EMAIL PROTECTED]> Subject: Re: Some questions about the architecture On 10/19/05, Apache Harmony Bootstrap JVM <[

Re: Some questions about the architecture

2005-10-19 Thread Archie Cobbs
Apache Harmony Bootstrap JVM wrote: *** How about you JVM experts out there? Do you have any wisdom for me on the subject of time slicing on an outer/inner interpreter loop interpreter implementation? And compared to JIT? Archie Cobb, what do you think? How about you l

Re: Some questions about the architecture

2005-10-19 Thread Rodrigo Kumpera
r on stack (since it's the one used to lookup classes for deserialization); Security needs to walk the stack for performing checks on the code base of each method on on; and JNI needs this as exceptions are queued for using by the ExceptionOccurred call. I did look at opcode.c and thread.c but

Re: Some questions about the architecture

2005-10-19 Thread Apache Harmony Bootstrap JVM
the exception. That is effectively what I have tried to implement here in the native 'C' code on the real platform, to use OO terms. Did I misunderstand you? Thanks, Dan Lydick -Original Message- From: Rodrigo Kumpera <[EMAIL PROTECTED]> Sent: Oct 19, 2005 11:54