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

WIP: Add support for subtracting -header size from offset #7405

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

VermaSh
Copy link
Contributor

@VermaSh VermaSh commented Jul 10, 2024

Update generateArrayElementAddressTrees to support subtracting -header size from element offset. IdiomRecognitionUtils::createIndexOffsetTree was subtracting -header size prior to off-heap changes. I am not sure if any opt looks for this pattern but adding the support to stay consistent with pre off-heap logic.

@VermaSh
Copy link
Contributor Author

VermaSh commented Jul 10, 2024

I'll remove the WIP tag after testing. For reference, here's the pre off-heap IdiomRecognitionUtils::createIndexOffsetTree.

cc: @r30shah @zl-wang

@VermaSh
Copy link
Contributor Author

VermaSh commented Jul 10, 2024

Personal build with these changes: 23147

@VermaSh
Copy link
Contributor Author

VermaSh commented Jul 17, 2024

I am able to reproduce the failure on my machine with 1 in 2 failure rate. We fail in compiled method: net/openj9/test/decimals/TestED2PD.testZeros()V. Digging further into the failure.

Update generateArrayElementAddressTrees to support subtracting -header
size from element offset. IdiomRecognitionUtils::createIndexOffsetTree
was subtracting -header size prior to off-heap changes. I am not sure if
any opt looks for this pattern but adding the support to stay consistent
with pre off-heap logic.

Signed-off-by: Shubham Verma <[email protected]>
@VermaSh
Copy link
Contributor Author

VermaSh commented Jul 24, 2024

Fixed previous build failures. Launched a new personal build with these changes.

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.

1 participant