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

Vladimir Kozlov kvn at openjdk.org
Tue Sep 30 18:05:42 UTC 2025


On Tue, 30 Sep 2025 17:00:05 GMT, Ashutosh Mehra <asmehra at openjdk.org> wrote:

>  I can add an assert that id_counter is 0 in AdapterHandlerLibrary::initialize() to make it more explicit. Would that be sufficient?

Yes.   Adapters can't be requested when `AdapterHandlerLibrary::initialize()` is executed (we still running in one thread). And after `AdapterHandlerLibrary::initialize()` it is okay.

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

PR Comment: https://git.openjdk.org/jdk/pull/27553#issuecomment-3353257617


More information about the hotspot-dev mailing list