Skip to content

testValueWith...GCScanning is expected to use flattened arrays - #20290

Merged
hangshao0 merged 1 commit into
eclipse-openj9:masterfrom
theresa-m:valuetype_jit
Oct 4, 2024
Merged

testValueWith...GCScanning is expected to use flattened arrays#20290
hangshao0 merged 1 commit into
eclipse-openj9:masterfrom
theresa-m:valuetype_jit

Conversation

@theresa-m

Copy link
Copy Markdown
Contributor

No description provided.

Signed-off-by: Theresa Mammarella <Theresa.T.Mammarella@ibm.com>
@theresa-m theresa-m added project:valhalla Used to track Project Valhalla related work comp:test labels Oct 2, 2024
@hangshao0

Copy link
Copy Markdown
Contributor

Jenkins test sanity.functional alinuxval jdknext

@hangshao0
hangshao0 merged commit ffdef37 into eclipse-openj9:master Oct 4, 2024
ArrayList<Object> longAlignmentArrayList = new ArrayList<Object>(objectGCScanningIterationCount);
for (int i = 0; i < objectGCScanningIterationCount; i++) {
Object newLongAlignmentArray = Array.newInstance(assortedValueWithLongAlignmentClass, genericArraySize);
Object newLongAlignmentArray = (Object)ValueClass.newNullRestrictedArray(assortedValueWithLongAlignmentClass, genericArraySize);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Aren't the casts to Object (here and on the other changed lines) redundant (newNullRestrictedArray() is declared to return Object[])?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Your right, I will clean this up.

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.

3 participants