RFR (XXS): 8023191: OSR nmethods should be flushed to free space in CodeCache
john.r.rose at oracle.com
Thu Oct 10 09:47:54 PDT 2013
On Oct 10, 2013, at 8:34 AM, Albert Noll <albert.noll at oracle.com> wrote:
> There is one thing I do not understand in the current implementation. What is the reason
> that OSR nmethods are maintained in InstanceKlass and not in Method?
> I do not see a reason but maybe I am missing something.
The basic assumption in HotSpot before OSR is that each bytecode method has zero or one compiled versions.
With OSR, we need multiple versions (for different entry points). Putting this in required an ad hoc data structure that had to be built on the side.
See my earlier message for where I think the "sweet spot" is: A way to bind a specific method to zero or more versioned n-methods.
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the hotspot-compiler-dev