RFR: 8369993: Redundant separate 'String' check in 'trust_final_non_static_fields' ciField.cpp

Chen Liang liach at openjdk.org
Wed Nov 12 01:07:07 UTC 2025


On Fri, 7 Nov 2025 10:57:53 GMT, Zihao Lin <duke at openjdk.org> wrote:

> Remove redundant separate 'String' check in 'trust_final_non_static_fields' ciField.cpp

@linzihao1999 I noted there is another more comprehensive issue for this function: https://bugs.openjdk.org/browse/JDK-8368961

There are a total of 3 redundant checks in this function that can be removed. If you want to update this patch, feel free to update the issue for the PR, and include the cleanup for all 3 redundant checks.

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

PR Comment: https://git.openjdk.org/jdk/pull/28191#issuecomment-3519393814


More information about the hotspot-compiler-dev mailing list