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

Define unit tests involving arrays of empty value types #18041

Conversation

hzongaro
Copy link
Member

@hzongaro hzongaro commented Aug 29, 2023

This change defines some simple unit tests that create arrays of value classes and null restricted value classes, where the classes have no fields. The objective is to ensure that allocation, assignment and comparison of flattened arrays whose elements are of length zero does not result in unexpected failures.

related to #14027

@hzongaro hzongaro added comp:test project:valhalla Used to track Project Valhalla related work labels Aug 29, 2023
@hzongaro
Copy link
Member Author

Annabelle @a7ehuo, Hang @hangshao0, may I ask you to review this change?

@hzongaro hzongaro marked this pull request as draft August 29, 2023 19:14
@hzongaro
Copy link
Member Author

hzongaro commented Aug 29, 2023

I'll move it to draft for now, while we're waiting for pull request #17994 to be merged, but I don't expect to make any changes, other than those that might be requested in a review.

Copy link
Contributor

@hangshao0 hangshao0 left a comment

Choose a reason for hiding this comment

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

LGTM.

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. Just one very minor comment on format

This change defines some simple unit tests that create arrays of value
classes and null restricted value classes, where the classes have no
fields.  The objective is to ensure that allocation, assignment and
comparison of flattened arrays whose elements are of length zero does
not result in unexpected failures.
@hzongaro hzongaro force-pushed the test-empty-value-type-array-elements branch from 400840e to 6fb2ec1 Compare September 5, 2023 15:04
@hzongaro hzongaro marked this pull request as ready for review September 5, 2023 15:05
@hzongaro
Copy link
Member Author

hzongaro commented Sep 5, 2023

Jenkins test sanity xlinuxval jdknext

@hzongaro
Copy link
Member Author

hzongaro commented Sep 6, 2023

Hang @hangshao0, now that pull request #17994 has been merged, I've moved this pull request into "Ready for review" status.

@hangshao0 hangshao0 merged commit 999dfbc into eclipse-openj9:master Sep 6, 2023
5 checks passed
@hzongaro hzongaro deleted the test-empty-value-type-array-elements branch September 6, 2023 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
comp:test project:valhalla Used to track Project Valhalla related work
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants