RFR: 8292638: x86: Improve scratch register handling in VM stubs [v6]

Vladimir Ivanov vlivanov at openjdk.org
Mon Aug 22 17:13:51 UTC 2022


> (PR depends on #9923.)
> 
> Constants which reside outside code cache are not guaranteed to be reachable in
> RIP-relative addressing mode from stub code, but absolute addressing mode requires a
> scratch register.
> 
> Provide a scratch register to ensure constants are reachable irrespective of
> process memory layout. 
> 
> Make scratch register usage explicit to make possible conflicts with surrounding stub code explicit.
> 
> Testing:
> - [x] hs-tier1 - hs-tier4
> - [x] x86_32 hotspot build

Vladimir Ivanov has updated the pull request incrementally with three additional commits since the last revision:

 - formatting
 - Merge branch 'trig_rscratch' of https://github.com/iwanowww/jdk into trig_rscratch
 - x86_32

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/9932/files
  - new: https://git.openjdk.org/jdk/pull/9932/files/8a16894a..6ea69dd2

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=9932&range=05
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=9932&range=04-05

  Stats: 116 lines in 3 files changed: 7 ins; 88 del; 21 mod
  Patch: https://git.openjdk.org/jdk/pull/9932.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/9932/head:pull/9932

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


More information about the hotspot-dev mailing list