RFR: 8373428: Refine variables with the same name in nested scopes in PhaseChaitin::gather_lrg_masks
Hamlin Li
mli at openjdk.org
Wed Dec 10 14:51:21 UTC 2025
Hi,
Can you help to review this trivial patch?
In PhaseChaitin::gather_lrg_masks, several variables have the same name in nested scopes, it looks like following code snippet.
{
A a;
{
A a;
}
}
This is not helpful to code readability, in particular in a long method like `gather_lrg_masks`, better to rename them.
Thanks!
-------------
Commit messages:
- more
- initial commit
Changes: https://git.openjdk.org/jdk/pull/28748/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=28748&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8373428
Stats: 20 lines in 1 file changed: 0 ins; 0 del; 20 mod
Patch: https://git.openjdk.org/jdk/pull/28748.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/28748/head:pull/28748
PR: https://git.openjdk.org/jdk/pull/28748
More information about the hotspot-compiler-dev
mailing list