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

Kerem Kat krk at openjdk.org
Fri Oct 24 14:30:55 UTC 2025


On Wed, 22 Oct 2025 11:34:36 GMT, Christian Hagedorn <chagedorn at openjdk.org> wrote:

>> Kerem Kat has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains four additional commits since the last revision:
>> 
>>  - Merge branch 'master' into elfdecoder-JDK-8334866
>>  - Merge remote-tracking branch 'upstream/master' into elfdecoder-JDK-8334866
>>  - Merge remote-tracking branch 'upstream/master' into elfdecoder-JDK-8334866
>>  - 8334866: Cache debug_aranges for faster address lookups
>
> src/hotspot/share/utilities/elfFile.hpp line 533:
> 
>> 531: 
>> 532:     ArangesCache() : _entries(nullptr), _count(0), _capacity(0), _initialized(false), _failed(false) {}
>> 533:     ArangesCache(ArangesCache&& other) : _entries(other._entries), _count(other._count), _capacity(other._capacity),
> 
> According to the style guide, move constructors/semantics is a feature we are undecided about and we should currently refrain from using them until a consensus is reached: [style guide](https://github.com/openjdk/jdk/blob/master/doc/hotspot-style.md#additional-undecided-features).

Removed move ctor, thanks!

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

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


More information about the hotspot-dev mailing list