JDK-8364929 : Assign unique id to each AdapterBlob stored in AOTCodeCache
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: compiler
  • Affected Version: 25,26
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2025-08-06
  • Updated: 2025-10-13
  • Resolved: 2025-10-03
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 26
26 b19Fixed
Related Reports
Causes :  
Causes :  
Description
AOTCodeCache stores AdapterBlob using the hash computed from AdapterFingerPrint. It is not guaranteed that the hash would be unique. If there is hash collision, then the AOTCodeCache fails to find the AdapterBlob in the cache and emits warnings, like this (generated by running test runtime/cds/appcds/aotClassLinking/StringConcatStress.java)

>     [0.011s][warning][aot,codecache] 0 (L0): Saved adapter's name 'LLIIIIIIIILIII' is different from 'LLIIIILIIIIIII'
>     [0.011s][warning][cds          ] Failed to link AdapterHandlerEntry to its code in the AOT code cache
>     [0.011s][warning][aot,codecache] 0 (L0): Saved adapter's name 'LLIIIIIIILIII' is different from 'LLIIIILIIIIII'
>     [0.011s][warning][cds          ] Failed to link AdapterHandlerEntry to its code in the AOT code cache

Although not fatal, this is undesirable. It can be easily fixed by generating a unique id for each AdapterBlob stored in the AOTCodeCache.


Comments
Changeset: f62b9eca Branch: master Author: Ashutosh Mehra <asmehra@openjdk.org> Date: 2025-10-03 02:43:14 +0000 URL: https://git.openjdk.org/jdk/commit/f62b9eca08694bbbe80d9e7d7b704db4f2423830
03-10-2025

A pull request was submitted for review. Branch: master URL: https://git.openjdk.org/jdk/pull/27553 Date: 2025-09-29 16:22:45 +0000
29-09-2025