RFR: 8349405: Redundant and confusing null checks on data from CP::resolved_klasses [v2]
Ioi Lam
iklam at openjdk.org
Wed Apr 16 21:17:54 UTC 2025
On Wed, 16 Apr 2025 18:23:26 GMT, Coleen Phillimore <coleenp at openjdk.org> wrote:
>> This small cleanup asserts that when we have JVM_CONSTANT_Class tag in the constant pool, the resolved_klasses() contains a non-null Klass. There were some null checks left over and access to resolved_klasses() should go through resolved_klass_at() whenever possible to hide the CPSlot code.
>> Tested with tier1-8.
>
> Coleen Phillimore has updated the pull request incrementally with one additional commit since the last revision:
>
> Move comment to above the lines it describes.
LGTM. Thanks for the off-line discussion to show me how this works.
-------------
Marked as reviewed by iklam (Reviewer).
PR Review: https://git.openjdk.org/jdk/pull/24665#pullrequestreview-2773875081
More information about the hotspot-dev
mailing list