RFR: 8334866: Improve Speed of ElfDecoder source search [v6]

Kerem Kat krk at openjdk.org
Wed Oct 29 12:38:49 UTC 2025


On Mon, 27 Oct 2025 09:10:33 GMT, Christian Hagedorn <chagedorn at openjdk.org> wrote:

>> Kerem Kat has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Fix comments, delete copy ctor
>
> src/hotspot/share/utilities/elfFile.cpp line 801:
> 
>> 799:       _cache._capacity = _cache._count;
>> 800:     }
>> 801:   }
> 
> Why do we need this? Can you add a comment?

Thanks for pointing out. I don't think we need this anymore as realloc may copy instead of in-place resizing. Will remove the trimming.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/27337#discussion_r2472846876


More information about the hotspot-dev mailing list