Integrated: 8288971: AArch64: Clean up stack and register handling in interpreter

Andrew Haley aph at openjdk.org
Mon Jul 4 13:29:40 UTC 2022


On Wed, 22 Jun 2022 13:00:44 GMT, Andrew Haley <aph at openjdk.org> wrote:

> There are several places in the interpreter that could be improved.
> 
> 1. We use r13 to pass the caller's SP to a callee through adapters. r13 is not a callee-saved register in the native ABI, so this causes some complications. Use a callee-saved register.
> 2. We frequently recalculate the location where the native SP needs to go. We have a spare slot in the interpreter frame, so we should calculate it once, when the frame is created, and use it.
> 3. Related to 1, we should clearly label all the places where the caller's SP is passed to a callee.

This pull request has now been integrated.

Changeset: b5d96565
Author:    Andrew Haley <aph at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/b5d965656d937e31ca7d3224c4e981d5083091c9
Stats:     170 lines in 15 files changed: 66 ins; 38 del; 66 mod

8288971: AArch64: Clean up stack and register handling in interpreter

Reviewed-by: adinn, ngasson

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

PR: https://git.openjdk.org/jdk/pull/9239


More information about the hotspot-dev mailing list