RFR: 8373697: AArch64: Remove deoptimization stub code for nmethods with small stack frames

Dean Long dlong at openjdk.org
Sat Dec 20 21:57:01 UTC 2025


On Tue, 16 Dec 2025 23:15:12 GMT, Ruben <duke at openjdk.org> wrote:

> Removal of deoptimization stub codes improves density of compiled code.
> It is possible at least for methods with relatively small stack frames.

That's a good idea.  But instead of storing the nmethod* into r8, how about storing the original PC?  Then we don't need to reserve that stack slot in the frame anymore.  However, I'm not sure this trick will work for all compiled frames.  Do we always save r8 on compiled --> compiled calls, or only for compiled --> runtime calls?

-------------

PR Comment: https://git.openjdk.org/jdk/pull/28857#issuecomment-3678149408


More information about the hotspot-dev mailing list