Integrated: 8364929: Assign unique id to each AdapterBlob stored in AOTCodeCache

Ashutosh Mehra asmehra at openjdk.org
Fri Oct 3 02:46:01 UTC 2025


On Mon, 29 Sep 2025 16:22:45 GMT, Ashutosh Mehra <asmehra at openjdk.org> wrote:

> This patch assigns unique id to each AdapterHandlerEntry so as to avoid using hash computed from AdapterFingerPrint which may not be unique. Unique id allows AOTCodeCache to locate the AdapterBlob being requested to be loaded.
> 
> Testing:
> Before this patch `runtime/cds/appcds/aotClassLinking/StringConcatStress.java` emits warning messages in the production run:
> 
> [0.009s][warning][aot,codecache,stubs] Saved blob's name 'LIIDIIIDL' is different from the expected name 'LIIDIIDL'
> [0.009s][warning][aot                ] Failed to link AdapterHandlerEntry (fp=LIIDIIDL) to its code in the AOT code cache
> [0.009s][warning][aot,codecache,stubs] Saved blob's name 'IILLLLIIIIII' is different from the expected name 'IILLLLLILIII'
> [0.009s][warning][aot                ] Failed to link AdapterHandlerEntry (fp=IILLLLLILIII) to its code in the AOT code cache
> 
> With this patch, such warnings are not seen at all

This pull request has now been integrated.

Changeset: f62b9eca
Author:    Ashutosh Mehra <asmehra at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/f62b9eca08694bbbe80d9e7d7b704db4f2423830
Stats:     34 lines in 2 files changed: 18 ins; 1 del; 15 mod

8364929: Assign unique id to each AdapterBlob stored in AOTCodeCache

Reviewed-by: kvn, iklam

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

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


More information about the hotspot-dev mailing list