RFR: 8279619: [JVMCI] improve EncodedSpeculationReason

Doug Simon dnsimon at openjdk.org
Mon Feb 13 12:29:11 UTC 2023


This PR enhances `jdk.vm.ci.meta.EncodedSpeculationReason.encode` such that the `groupName` parameter is included in the encoding. This mitigates the possibility of 2 unrelated speculation objects having the same hash which, in turn, mitigates the possibility of missing a speculation based optimization opportunity.

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

Commit messages:
 - EncodedSpeculationReasons with different groupName should produce unique encoded speculations

Changes: https://git.openjdk.org/jdk/pull/12532/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=12532&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8279619
  Stats: 42 lines in 2 files changed: 40 ins; 0 del; 2 mod
  Patch: https://git.openjdk.org/jdk/pull/12532.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/12532/head:pull/12532

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


More information about the hotspot-compiler-dev mailing list