RFR: 8349180: Remove redundant initialization in ciField constructor

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


On Fri, 14 Feb 2025 15:00:06 GMT, Marc Chevalier <duke at openjdk.org> wrote:

> 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

Hello @marc-chevalier! I have already open a PR for this matter. PR is https://github.com/openjdk/jdk/pull/23480.

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

PR Comment: https://git.openjdk.org/jdk/pull/23637#issuecomment-2660560678


More information about the hotspot-compiler-dev mailing list