Java processors

D

Daniele Futtorovic

That would be much simpler. That way you would never optimise a loop
in the process of being executed. That sounds like a much more
plausible task. All you have to do is get the stack right and leave
all the class and instance variable where they are.

The problem it is could wait quite a long time to interrupt. I wonder
how it actually works.

Well, look at it like this: the longer (and hence less frequently) the
method runs (it running indefinitely being the extreme case), the less
reason there is to replace it.
 
D

David Lamb

It wouldn't make sense to keep old compilations around. They're based on
runtime conditions that by definition have changed or the old one would
still be valid.

It has been a long time since I worked on optimizing compiler
technology, but my fragmented memories suggest that it's not "all or
nothing" with regard to what information you need for optimization. Some
intra-procedural data flow analysis remains valid even if
inter-procedural or inter-class information changes, and some
optimization only depend on local information.
 
L

Lew

On 08/07/2012 8:56 PM, Lew wrote:
> It wouldn't make sense to keep old compilations around. They're based on
> runtime conditions that by definition have changed or the old one would
> still be valid.

It has been a long time since I worked on optimizing compiler
technology, but my fragmented memories suggest that it's not "all or
nothing" with regard to what information you need for optimization. Some
intra-procedural data flow analysis remains valid even if
inter-procedural or inter-class information changes, and some
optimization only depend on local information.

I said "compilations". You said "optimizations".

Apples. Oranges.
 
E

Eric Sosman

Which, from a VM point of view, is nothing else than an anonymous static
initializer method.

I hadn't thought it necessary to be so explicit, but okay:

class Clown {
static {
while(true) System.out.println(":)");
}
}

(Sigh.)
 
E

Eric Sosman

throw new JokeDetectorTemporallyUnavailableException("Brain on
standby.");

In fairness, I suppose the expression "class clown" may be
an Americanism, a slang usage not covered in textbooks that even
the most assiduous and capable student might read. We all reveal
our insularities in a multitude of ways, and perhaps even more
obviously when we're trying to be "funny." Sorry for any offense.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,754
Messages
2,569,521
Members
44,995
Latest member
PinupduzSap

Latest Threads

Top