RFR: 8356044: Use Double::hashCode and Long::hashCode in java.vm.ci.meta
    Shaojin Wen 
    swen at openjdk.org
       
    Thu May  1 17:35:56 UTC 2025
    
    
  
Similar to #24959 and #24971 and #24987, AbstractProfiledItem/PrimitiveConstant in java.vm.ci.meta can also be simplified similarly.
Replace manual bitwise operations in hashCode implementations of java.vm.ci.meta.AbstractProfiledItem/java.vm.ci.meta.PrimitiveConstant with Long::hashCode/Double.hashCode.
-------------
Commit messages:
 - Use Double::hashCode & Long::hashCode
Changes: https://git.openjdk.org/jdk/pull/24988/files
  Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=24988&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8356044
  Stats: 8 lines in 2 files changed: 0 ins; 5 del; 3 mod
  Patch: https://git.openjdk.org/jdk/pull/24988.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/24988/head:pull/24988
PR: https://git.openjdk.org/jdk/pull/24988
    
    
More information about the hotspot-compiler-dev
mailing list