Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update uses of checkArrayCompClassPrimitiveValueType #7477

Conversation

hzongaro
Copy link
Member

@hzongaro hzongaro commented Oct 2, 2024

The utility method checkArrayCompClassPrimitiveValueType has been renamed testIsArrayClassNullRestrictedType, to reflect more recent terminology, and it no longer expects an "if" OpCode argument. Instead, it generates IL that yields a zero or non-zero result to indicate whether the array is null-restricted. This change updates uses of that method to branch appropriately based on the result of the IL produced by testIsArrayClassNullRestrictedType.

This change is in OpenJ9-specific code.

@hzongaro
Copy link
Member Author

hzongaro commented Oct 2, 2024

@a7ehuo, @0xdaryl, may I ask you to review this change?

This pull request requires a coordinated merge with eclipse-openj9/openj9#20291

@0xdaryl
Copy link
Contributor

0xdaryl commented Oct 3, 2024

Jenkins build all

@0xdaryl 0xdaryl self-assigned this Oct 3, 2024
Copy link
Contributor

@a7ehuo a7ehuo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

The utility method checkArrayCompClassPrimitiveValueType has been
renamed testIsArrayClassNullRestrictedType, to reflect more recent
terminology, and it no longer expects an "if" OpCode argument.
Instead, it generates IL that yields a zero or non-zero result to
indicate whether the array is null-restricted.  This change updates uses
of that method to branch appropriately based on the result of the IL
produced by testIsArrayClassNullRestrictedType.

Signed-off-by:  Henry Zongaro <zongaro@ca.ibm.com>
@hzongaro hzongaro force-pushed the assigning-null-to-non-nullable-array-throws-ArrayStoreException branch from 266df31 to f02e24b Compare October 7, 2024 17:20
@hzongaro
Copy link
Member Author

hzongaro commented Oct 7, 2024

Rebased changes onto current HEAD of openj9 branch of https://github.com/eclipse-openj9/openj9-omr.

@0xdaryl 0xdaryl merged commit 2f7acf5 into eclipse:master Oct 8, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants