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

Fix P allocationInlining OffHeap len cmp to use cmp4 instead of cmp8 #21184

Merged
merged 1 commit into from
Feb 26, 2025

Conversation

rmnattas
Copy link
Contributor

@rmnattas rmnattas commented Feb 25, 2025

The array allocation length is a int node/value, using a cmp8 on it can result in the wrong result if it the register has undefined value in the upper 4-bytes.

Current code show proper cmp instruction compared to the added offheap check.
Screenshot 2025-02-25 at 12 32 04 PM

WIP: finishing tests

@rmnattas
Copy link
Contributor Author

@zl-wang

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.

LGTM

@zl-wang
Copy link
Contributor

zl-wang commented Feb 25, 2025

Jenkins test sanity aix,plinux jdk8,jdk23

@zl-wang
Copy link
Contributor

zl-wang commented Feb 25, 2025

please follow up with a performance enhancing PR (fix the sub-optimal code seq).

@rmnattas
Copy link
Contributor Author

Passed tests, good for merge

@rmnattas rmnattas marked this pull request as ready for review February 25, 2025 21:25
@zl-wang
Copy link
Contributor

zl-wang commented Feb 26, 2025

failed test: cmdLineTester_criu_jitserverPostRestore_2
definitely unrelated. it is more a problem with the testing env.

@zl-wang
Copy link
Contributor

zl-wang commented Feb 26, 2025

given above, merging ...

@zl-wang zl-wang merged commit 3f27509 into eclipse-openj9:master Feb 26, 2025
13 of 15 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