RFR: 8316523: Relativize esp in interpreter frames (PowerPC only)

Fredrik Bredberg fbredberg at openjdk.org
Sat Sep 30 14:51:39 UTC 2023


On Sat, 30 Sep 2023 11:57:49 GMT, Fredrik Bredberg <fbredberg at openjdk.org> wrote:

> Relativize esp (Expression Stack Pointer on PowerPC) in interpreter frames.
> 
> By changing the "esp" member in interpreter frames from being an absolute address into an offset that is relative to the frame pointer, we don't need to change the value as we freeze and thaw frames of virtual threads. This is since we might freeze and thaw from and to different worker threads, so the absolute address to locals might change, but the offset from the frame pointer will be constant.
> 
> This subtask only handles "esp" on PowerPC. The relativization of other interpreter frame members are handled in other subtasks to [JDK-8289296](https://bugs.openjdk.org/browse/JDK-8289296).
> 
> It has been sanity tested onr PowerPC using Qemu.

Since this is a PowerPC only PR, I think this needs to be reviewed by @TheRealMDoerr.

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

PR Comment: https://git.openjdk.org/jdk/pull/15999#issuecomment-1741782298


More information about the hotspot-dev mailing list