Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8364929

Assign unique id to each AdapterBlob stored in AOTCodeCache

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • None
    • hotspot

      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.

            asmehra Ashutosh Mehra
            asmehra Ashutosh Mehra
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: