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

Vladimir Kozlov kvn at openjdk.org
Wed Feb 4 17:42:09 UTC 2026


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

> The current patch also needs fixing to load G1 grain size and card table base from the AOT constants region when the cache is on_for_dump(). We ought to port that across to mainline as separate fixes rather than part of this patch. They don't strictly need to go in first although that would be less fragile.

I agree with that.

> Also, I noticed that the changes to the encode/decode klass methods in mainline and premain differ slightly on x86. In particular the move_and_en/decode methods in mainline don't special case 'on_for_dump()'. I'm not sure if that was an accident or not (the move_and_xxx variants might not have been used when generating adapters). However, we maybe also need to fix that.

We did not use this code in mainline so it stay behind code in premain. We need to ported it too.

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

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


More information about the hotspot-dev mailing list