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

María Arias de Reyna Domínguez duke at openjdk.org
Fri Feb 13 09:44:34 UTC 2026


> 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 two additional commits since the last revision:

 - fix: Previous patch should have removed one line more
 - Apply suggestions from code review
   
   Co-authored-by: Andrew Dinn <adinn at redhat.com>

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/29690/files
  - new: https://git.openjdk.org/jdk/pull/29690/files/a72196fb..d9f3a9cb

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=29690&range=01
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=29690&range=00-01

  Stats: 13 lines in 1 file changed: 11 ins; 0 del; 2 mod
  Patch: https://git.openjdk.org/jdk/pull/29690.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/29690/head:pull/29690

PR: https://git.openjdk.org/jdk/pull/29690


More information about the hotspot-dev mailing list