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

Ashutosh Mehra asmehra at openjdk.org
Tue Sep 30 20:25:45 UTC 2025


On Tue, 30 Sep 2025 19:52:49 GMT, Vladimir Kozlov <kvn at openjdk.org> wrote:

>>> Is this number the same as number of AOT adapter entries in AdapterHandlerEntry? Do we need max_id? In which case they could be different?
>> 
>> I thought about this. It is possible that some adapters generated in assembly phase are not stored in the cache. So there may be gaps in the adapter ids of the adapters in the cache. In such case using the number of entries to decide next adapter id can result in clash of adapter id with the runtime generated adapters. But the maximum id ensures adapter ids are never reused.
>
> Please add comment about that.

Done

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

PR Review Comment: https://git.openjdk.org/jdk/pull/27553#discussion_r2392741060


More information about the hotspot-dev mailing list