RFR: 8377777: Improve logging when rejecting assets from the AOT archive [v9]

María Arias de Reyna Domínguez duke at openjdk.org
Thu Feb 26 15:26:50 UTC 2026


On Thu, 26 Feb 2026 11:00:47 GMT, María Arias de Reyna Domínguez <duke at openjdk.org> wrote:

>> Restored the check `if (resolved)` when printing if a CP entry is rejected or archived. If it is not resolved, we shouldn't even bother with it.
>> 
>> Also, added log messages (mostly based on surrounding comments) on `ConstantPoolCache::can_archive_resolved_method` to add information about why a method gets rejected.
>> 
>> All the log messages have the same format to be able to parse them easily:
>> 
>> ` log.print("%s can't be archived because $REASON.",
>>                 pool_holder->name()->as_C_string());`
>
> María Arias de Reyna Domínguez has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Update src/hotspot/share/oops/cpCache.cpp
>   
>   Co-authored-by: Thomas Stuefe <thomas.stuefe at gmail.com>

Pulling from master fixes the tests, but I will first address the rest of the comments and then... pull, rebase, and force push because why commit another solution when the solution is already there?

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

PR Comment: https://git.openjdk.org/jdk/pull/29690#issuecomment-3967323269


More information about the hotspot-dev mailing list