Hi,
> >I.e., I'm wondering if a gc can discard a compiled method and
> >cause it to run interpreted again the next time it is called.
> >Is this possible?
>
> I imagine it is possible - I'm not aware of anything in the Java specs
> that define behaviour of JITs. I can't guess how likely it is, it
> seems like a fairly minor optimization.
I don't know very much about JIT related in the Java specs,
but I can speak about a JIT implementation like my TYA JIT compiler.
At least there is a CompilerFreeClass_hook called giving the JIT
the chance to release all memory used for jit-compiled methods.
So for TYA JIT the answer is:
"Yes" in case of class-gc, and
"No" related to a single compiled method. (Of course it would be possible,
at all it is a question of interfacing to JVM.)
Cheers,
Albrecht
----------------------------------------------------------------------
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]