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

Enable String.indexOf intrinsic for OffHeap on POWER #20930

Merged

Conversation

luke-li-2003
Copy link
Contributor

Calculate the address for the array data in OffHeap mode correctly for the String.indexOf instrinsic.

@luke-li-2003
Copy link
Contributor Author

@luke-li-2003 luke-li-2003 force-pushed the StringIndexOfOffHeapIntrinsic branch 3 times, most recently from f4e69d5 to d9d0a08 Compare January 13, 2025 23:21
@luke-li-2003 luke-li-2003 marked this pull request as ready for review January 14, 2025 17:36
TR::MemoryReference::createWithDisplacement(
cg, array, TR::Compiler->om.offsetOfContiguousDataAddrField(), 8
)
);
Copy link
Contributor

Choose a reason for hiding this comment

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

everything looks good, except weird-looking indentations around here and below. is it better to put the first ) after 8 and aligning the second ) with cg/TR? you have the precedence of that already below with addi.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have updated the indentations; do they look right now?

Calculate the address for the array data in OffHeap mode
correctly for the String.indexOf instrinsic.

Signed-off-by: Luke Li <[email protected]>
@luke-li-2003 luke-li-2003 force-pushed the StringIndexOfOffHeapIntrinsic branch from d9d0a08 to 8175809 Compare January 16, 2025 15:58
Copy link
Contributor

@zl-wang zl-wang left a comment

Choose a reason for hiding this comment

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

Looks good

@zl-wang
Copy link
Contributor

zl-wang commented Jan 16, 2025

Jenkins test sanity aix,plinux jdk8,jdk23

@zl-wang zl-wang merged commit 9243a1f into eclipse-openj9:master Jan 16, 2025
14 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants