Integrated: 8349405: Redundant and confusing null checks on data from CP::resolved_klasses

Coleen Phillimore coleenp at openjdk.org
Thu Apr 17 11:49:49 UTC 2025


On Tue, 15 Apr 2025 13:59:30 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.

This pull request has now been integrated.

Changeset: 5125ceb9
Author:    Coleen Phillimore <coleenp at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/5125ceb922540ef695d2fa4b3c7880e00dd078c3
Stats:     20 lines in 1 file changed: 3 ins; 11 del; 6 mod

8349405: Redundant and confusing null checks on data from CP::resolved_klasses

Reviewed-by: dholmes, iklam

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

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


More information about the hotspot-dev mailing list