Integrated: 8365378: Redundant code in Deoptimization::print_statistics

Paul Hübner duke at openjdk.org
Thu Aug 21 14:03:02 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.

This pull request has now been integrated.

Changeset: 1548ac4f
Author:    Paul Hübner <paul.hubner at oracle.com>
Committer: Casper Norrbin <cnorrbin at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/1548ac4f54edbd370aa071fa1db4474574d2987f
Stats:     2 lines in 1 file changed: 0 ins; 2 del; 0 mod

8365378: Redundant code in Deoptimization::print_statistics

Reviewed-by: jsjolen, coleenp

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

PR: https://git.openjdk.org/jdk/pull/26744


More information about the hotspot-dev mailing list