RFR: 8315069: Relativize extended_sp in interpreter frames [v3]

Fredrik Bredberg fbredberg at openjdk.org
Thu Aug 31 12:05:40 UTC 2023


> Implementation of relativized extended_sp in interpreter frames for AArch64 and RISC-V.
> 
> By changing the "extended_sp" 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 "extended_sp". The relativization of other interpreter frame members are handled in other subtasks to JDK-8289296.
> 
> Tested tier1-tier7 on aarch64. RISC-V  was sanity tested using Qemu.

Fredrik Bredberg has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains three additional commits since the last revision:

 - Merge branch 'master' into 8315069_relativize_extended_sp
 - Updated aarch64 after review
 - 8315069: Relativize extended_sp in interpreter frames

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/15468/files
  - new: https://git.openjdk.org/jdk/pull/15468/files/1256fe65..d9f2e389

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=15468&range=02
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=15468&range=01-02

  Stats: 14505 lines in 454 files changed: 9536 ins; 2580 del; 2389 mod
  Patch: https://git.openjdk.org/jdk/pull/15468.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/15468/head:pull/15468

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


More information about the hotspot-dev mailing list