RFR: 8365378: Redundant code in Deoptimization::print_statistics
Paul Hübner
duke at openjdk.org
Thu Aug 21 13:03:53 UTC 2025
On Thu, 21 Aug 2025 12:52:35 GMT, Johan Sjölen <jsjolen at openjdk.org> wrote:
>> Hi all,
>>
>> The `Deoptimization::print_statistics` function has a conditional that is never invoked. `bc_case` is bound in a for loop and will always be < `BC_CASE_LIMIT`. Therefore, the entire condition will never hold, and the branch never execute. This change removes the dead code in order to increase maintainability.
>>
>> I've run hotspot:tier1 to hotspot:tier3, in which I observed no test failures.
>
> Marked as reviewed by jsjolen (Reviewer).
Thanks for reviewing, @jdksjolen and @coleenp!
-------------
PR Comment: https://git.openjdk.org/jdk/pull/26744#issuecomment-3210500698
More information about the hotspot-dev
mailing list