RFR: 8357402: Crash in AdapterHandlerLibrary::lookup
Ashutosh Mehra
asmehra at openjdk.org
Thu May 22 19:28:57 UTC 2025
On Thu, 22 May 2025 19:09:42 GMT, Vladimir Kozlov <kvn at openjdk.org> wrote:
>> src/hotspot/share/oops/method.cpp line 413:
>>
>>> 411: if (CDSConfig::is_dumping_adapters() && _adapter != nullptr) {
>>> 412: _adapter->remove_unshareable_info();
>>> 413: _adapter = nullptr;
>>
>> We shouldn't be setting _adapter to null here. This breaks the link between Method and its adapter in the AOT cache.
>
> Without nulling it I got issue with referencing dead memory through this field.
I think that should not be happening. Can you please create a new issue for this with more details and I can try to see why is that the case.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/25398#discussion_r2103259503
More information about the hotspot-dev
mailing list