RFR: 8334866: Improve Speed of ElfDecoder source search

Francesco Andreuzzi fandreuzzi at openjdk.org
Thu Sep 18 12:44:00 UTC 2025


On Wed, 17 Sep 2025 11:08:47 GMT, Kerem Kat <krk at openjdk.org> wrote:

>> src/hotspot/share/utilities/elfFile.hpp line 530:
>> 
>>> 528:     size_t _capacity;
>>> 529:     bool _initialized;
>>> 530:     bool _failed;
>> 
>> What's the advantage of having `_failed`? It seems that whenever you check `_failed` you also check `_initialized`.
>
> If initialization is failed for some reason, we do not try it again for the same `DwarfFile`, with the check in `ensure_aranges_cache`.

I see, thanks.

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

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


More information about the hotspot-dev mailing list