RFR: 8372617: Save and restore stubgen stubs when using an AOT code cache

Andrew Dinn adinn at openjdk.org
Fri Nov 28 10:41:08 UTC 2025


This PR adds save and restore of all generated stubs to the AOT code cache on x86 and aarch64. Other arches are modified to deal with the related generic PAI changes.

Small changes were required to the aarch64 and x86_64 generator code in order to meet two key constraints:
1. the first declared entry of every stub starts at the first instruction in the stub code range
2. all data/code cross-references from one stub to another target a declared stub entry

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

Commit messages:
 - fix header declarations
 - move AOT address init impl into arch tree below StubRoutines
 - put AOT address table init code under INCLUDE_CDS
 - fix extras count to match number of unsafe handler regions
 - merge
 - more whitespace
 - rmeove whitespace
 - remove redundant comment
 - correct assert
 - fix typos
 - ... and 21 more: https://git.openjdk.org/jdk/compare/ac046628...0597bc6b

Changes: https://git.openjdk.org/jdk/pull/28433/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=28433&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8372617
  Stats: 5394 lines in 59 files changed: 4470 ins; 446 del; 478 mod
  Patch: https://git.openjdk.org/jdk/pull/28433.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/28433/head:pull/28433

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


More information about the hotspot-dev mailing list