RFR: 8372617: Save and restore stubgen stubs when using an AOT code cache [v4]
Vladimir Kozlov
kvn at openjdk.org
Fri Jan 23 21:53:38 UTC 2026
On Tue, 20 Jan 2026 09:57:56 GMT, Andrew Dinn <adinn at openjdk.org> wrote:
>> src/hotspot/share/code/aotCodeCache.cpp line 191:
>>
>>> 189:
>>> 190: // Disable stubs caching until JDK-8357398 is fixed.
>>> 191: // FLAG_SET_ERGO(AOTStubCaching, false);
>>
>> I can't seem to access JDK-8357398. I am not sure if that bug is fixed or not. But if it is not fixed yet, I think we should keep this un-commented. I guess this was commented out for testing purpose.
>
> That's a private bug (I believe it related to some internal testing which cannot be made public). Yu are right that this change is there to ensure the test checks stub save and restore. I also tweaked the AOTCodeFlags test for the same purpose. This change cannot go in as is without checking that it avoids the issue in JDK-8357398. If it does not then we would need to reset the above edit and the test. However, that means tier1 testing could fail to catch stub changes that correctly update runtime generation but fail to cache (the most likely error is failing to register an external address with the AOT cache). So, I'd prefer it if we could recheck the problem in JDK-8357398 and leave these changes as is. Perhaps @vnkozlov could help here?
I closed this confidential bug and created open: https://bugs.openjdk.org/browse/JDK-8357593
It is not fixed. I tried several times to find what is causing it without success.
Let me run general testing for these changes. And then will try to reproduce JCK issue.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/28433#discussion_r2722965712
More information about the hotspot-dev
mailing list