-
Notifications
You must be signed in to change notification settings - Fork 767
Recognize StringCoding.implEncodeAsciiArray in the JIT compiler #18876
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
Recognize StringCoding.implEncodeAsciiArray in the JIT compiler #18876
Conversation
Tagging @vijaysun-omr if you'd like to review as well. |
I skimmed the change quickly (and it looks like the right step) but will defer to Henry or Rahil for review / merge. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the changes in this pull request looks good. May I ask you to mention in the commit comment that there will be corresponding changes in Value Propagation in OMR that will take advantage of recognizing this method?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Apart from the typo that Henry already pointed out, changes overall looks good to me. I do agree with @hzongaro . We should have bit more background in the commit message.
9280b69
to
d34659a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the changes look good. Thanks!
Sorry for the belated comment, but are there any tests that ensure |
implEncodeAsciiArray is equivalent to Java 11's US_ASCII.encodeASCII converter method. Acceleration for this routine already exists in OMR. This commit, along with PR 7247 in eclipse/omr introduces changes in Value Propagation to transform this call into an arraytranslate node and accelerate the method.
d34659a
to
4335656
Compare
Testing together with OMR pull request 7247, which takes advantage of this change. Jenkins test sanity all jdk17,jdk21 depends eclipse-omr/omr#7247 |
JDK 21 Linux on z and AIX failures appear to have been due to infrastructure issues. Rerunning. Jenkins test sanity zlinux,aix jdk21 depends eclipse-omr/omr#7247 |
JDK 21 AIX build failed with this error this time:
That appears to be known issue #8625. Trying once more. Jenkins test sanity aix jdk21 depends eclipse-omr/omr#7247 |
Testing with upstream OMR change that takes advantage of this change was successful. Merging. |
I suspect this change, by itself since OMR hasn't promoted, has caused a lot of crashes in the builds. |
I had thought this change would have no effect without the related OMR change. I'll revert both. |
I'm not sure the cause is this change. Also I've just promoted eclipse-omr/omr#7247 since the OMR acceptance build looked ok. |
This commit introduces StringCoding.implEncodeAsciiArray (introduced in Java 17+) as a recognized method in the JIT compiler.