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. |
hzongaro
left a comment
There was a problem hiding this comment.
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?
9280b69 to
d34659a
Compare
hzongaro
left a comment
There was a problem hiding this comment.
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.