RFR: 8364929: Assign unique id to each AdapterBlob stored in AOTCodeCache [v4]

Ashutosh Mehra asmehra at openjdk.org
Thu Oct 2 18:52:10 UTC 2025


> 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

Ashutosh Mehra has updated the pull request incrementally with one additional commit since the last revision:

  Replace overflow check if guarantee statement
  
  Signed-off-by: Ashutosh Mehra <asmehra at redhat.com>

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/27553/files
  - new: https://git.openjdk.org/jdk/pull/27553/files/84edc05e..46bda6b3

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=27553&range=03
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=27553&range=02-03

  Stats: 4 lines in 1 file changed: 0 ins; 3 del; 1 mod
  Patch: https://git.openjdk.org/jdk/pull/27553.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/27553/head:pull/27553

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


More information about the hotspot-dev mailing list