RFR (XS): 8010460: Interpreter on some platforms loads ConstMethod::_max_stack and misses extra stack slots for JSR 292
Roland Westrelin
roland.westrelin at oracle.com
Wed Apr 24 08:46:39 PDT 2013
> I havn't thoroughly reviewd this, but maybe you could make ConstMethod
> 'extra_stack_entries_for_indy' aware as well, to avoid the extra
> bytes?
Thanks for the suggestion but I don't see how to make it work.
The _max_stack constant is directly loaded from the interpreter on some platforms. With the previous code, every places where _max_stack is loaded in the interpreter require some assembly code to add the extra stack slot (painful and error prone). With this change, the load of _max_stack would be sufficient because it includes the extra slot except for the corner case I mention.
Roland.
More information about the hotspot-compiler-dev
mailing list