RFR: 8349180: Remove redundant initialization in ciField constructor

Marc Chevalier duke at openjdk.org
Mon Feb 17 16:34:45 UTC 2025


In `ciField`'s ctor, `_name` is initialized twice. I think we can indeed apply the suggested fix and remove the second assignment. `_name` is set correctly the first time (and without the useless cast), and not modified in between.

Thanks,
Marc

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

Commit messages:
 - Remove redundant initialization in ciField constructor

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

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


More information about the hotspot-compiler-dev mailing list