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

Dean Long dlong at openjdk.org
Fri Dec 19 01:40:54 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.

A side table for the original PC does sound promising.  Then we can have smaller compiled frames.

Here's another possible idea: if the call return is a PostCallNop, we can change the return address so we return into the middle of the NOP.  On RISC that might be enough to cause an unaligned address trap.  On x64 or other architectures, we might need an actual embedded trap instruction.

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

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


More information about the hotspot-dev mailing list