RFR: 8365378: Redundant code in Deoptimization::print_statistics
    Paul Hübner 
    duke at openjdk.org
       
    Wed Aug 20 15:14:34 UTC 2025
    
    
  
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.
-------------
Commit messages:
 - Remove deoptimization statistics dead code.
Changes: https://git.openjdk.org/jdk/pull/26744/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=26744&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8365378
  Stats: 2 lines in 1 file changed: 0 ins; 2 del; 0 mod
  Patch: https://git.openjdk.org/jdk/pull/26744.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/26744/head:pull/26744
PR: https://git.openjdk.org/jdk/pull/26744
    
    
More information about the hotspot-runtime-dev
mailing list