RFR: 8377507: Store cpu features in AOTCodeCache [v2]

Vladimir Kozlov kvn at openjdk.org
Wed Feb 11 17:33:01 UTC 2026


On Tue, 10 Feb 2026 19:52:27 GMT, Ashutosh Mehra <asmehra at openjdk.org> wrote:

>> src/hotspot/share/code/aotCodeCache.cpp line 440:
>> 
>>> 438:   if (log.is_enabled()) {
>>> 439:     log.print_cr("Available CPU features: %s", VM_Version::features_string());
>>> 440:   }
>> 
>> I don't think output needed. As I noticed in my testing, it is usually duplicate of recorded features you print next.
>> 
>> May be in addition to report when features are not supported print which features does not match but we can still use AOT code.
>
>> I don't think output needed. As I noticed in my testing, it is usually duplicate of recorded features you print next.
> 
> okay, I will remove that.
> 
>> May be in addition to report when features are not supported print which features does not match but we can still use AOT code.
> 
> @vnkozlov Did you mean print the extra features present in the the runtime env?

@ashu-mehra yes, instead of "Available CPU features:" print "Additional available CPU features:" after you print recorded features.  Available CPU features printing is good but it is hard to see what is difference from what was recorded.
Printing additional features allow to see difference clearly.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/29655#discussion_r2794570193


More information about the hotspot-dev mailing list