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

Vladimir Kozlov kvn at openjdk.org
Thu Feb 5 02:17:11 UTC 2026


On Wed, 4 Feb 2026 15:39:13 GMT, Andrew Dinn <adinn at openjdk.org> wrote:

>> 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
>
> Andrew Dinn has updated the pull request with a new target base due to a merge or a rebase. The pull request now contains 43 commits:
> 
>  - merge
>  - ensure C1 treats ThreadIdentifier::unsafe_offset() as an external address
>  - configure low heap size to exercise more stub code
>  - Run AOTCodeFlags test with multiple GCs
>  - add missing external for aarch64
>  - fix thinko in idx save restore and tweak aarch64 external addresses
>  - added missing GC external addresses and speeded up address to id lookup
>  - fix whitespace issue
>  - remaining asmehra feedback
>  - asmehra feedback
>  - ... and 33 more: https://git.openjdk.org/jdk/compare/d49e29aa...ec219c0b

I assume we need to port some parts from premain first before we proceed with this PR. Right?

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

PR Comment: https://git.openjdk.org/jdk/pull/28433#issuecomment-3850692164


More information about the hotspot-dev mailing list