On Mon, Aug 17, 2009 at 8:04 AM, Hunkeler Peter (KIUP 4) <
[email protected]> wrote:

> >The JIT compiler can do things that a static compiler can't. The more
> >frequently a method is used, the more optimisations can be applied,
> >such as inlining other methods and branch table reorganisation. This
> >results in code which can actually be faster than statically-compiled
> >code.
>
> Does that mean that JIT compiled code is being monitored for its
> efficiency and is kind of recompiled every so often?
>

Yes that is exactly what it means at the high level.

>
>
> >That *is* meant to be an ironic statement, isn't it?
>
> Well, no.
>
> >If you use malloc() in a C program, then it's a good idea to
> >care about free() as well, otherwise you can end up out of memory.
>
> There is no need to use malloc() in C or ALLOC in PL/1. You can write
> your program using only automaic variables. The runtime takes care
> of the memory management. This is what I was referring to.


It is virtually impossible to build any C or C++ program (can't speak for
PL/1) of any sophistication without using memory allocation.  In larger
applications, application specific memory management may be implemented in
order to guarantee memory leakage does not occur.

>
>
> I admit that todays JVMs have much more sophisticated memory management
> code than HLL runtime environments provide.
>
> But the OPs argument I was responding to was that this very JVM memory
> management was a reason against compiling Java code. My argument is
> that Java's memory management concept doesn't have to be any different
> between running interpreted versus running compiled code.
>
> --
> Peter Hunkeler
> Credit Suisse
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to [email protected] with the message: GET IBM-MAIN INFO
> Search the archives at http://bama.ua.edu/archives/ibm-main.html
>

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to