RFR: 8364929: Assign unique id to each AdapterBlob stored in AOTCodeCache
Ashutosh Mehra
asmehra at openjdk.org
Tue Sep 30 17:03:00 UTC 2025
On Tue, 30 Sep 2025 16:41:16 GMT, Vladimir Kozlov <kvn at openjdk.org> wrote:
> Do we have guarantee that we load AOT adapters before any new adapter is generated?
There is no check for that as such. The adapters are loaded in `AdapterHandlerLibrary::initialize()` and I think there is already an assumption that `AdapterHandlerLibrary::initialize()` would be called before any adapters are created. I can add an assert that `id_counter` is 0 in `AdapterHandlerLibrary::initialize()` to make it more explicit. Would that be sufficient?
> Also if hash is not used we don't need related methods. Right?
Hash is still needed to look up an adapter in the runtime table based on the fingerprint obtained from method signature.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/27553#issuecomment-3353060980
More information about the hotspot-dev
mailing list