RFR: 8365378: Redundant code in Deoptimization::print_statistics
duke
duke at openjdk.org
Thu Aug 21 13:03:53 UTC 2025
On Tue, 12 Aug 2025 12:31:28 GMT, Paul Hübner <duke 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.
@Arraying
Your change (at version 392dd29e4e61c8b369b83fcbd9309021a719d857) is now ready to be sponsored by a Committer.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/26744#issuecomment-3210508721
More information about the hotspot-dev
mailing list