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

Re-enable toLowerCase/toUpperCase acceleration #2318

Merged
merged 2 commits into from
Jul 5, 2018

Conversation

dhong44
Copy link
Contributor

@dhong44 dhong44 commented Jul 4, 2018

Modify API call so that caseConversionHelper receives
underlying arrays and length of string.

Closes: #1934
Closes: #777

Signed-off-by: Daniel Hong daniel.hong@live.com

Modify API call so that caseConversionHelper recieves
underlying arrays and length of string.

Closes: eclipse-openj9#1934

Signed-off-by: Daniel Hong <daniel.hong@live.com>
Remove unused String constructors accepting one integer
and returning an empty String with an appropriate capacity.

Closes: eclipse-openj9#777

Signed-off-by: Daniel Hong <daniel.hong@live.com>
@dhong44
Copy link
Contributor Author

dhong44 commented Jul 4, 2018

@fjeremic Could I get a review please

@fjeremic fjeremic self-assigned this Jul 4, 2018
@fjeremic
Copy link
Contributor

fjeremic commented Jul 4, 2018

This is a copy of #2098 which was merged accidentally before running testing. Let's do some tests now...

Jenkins test sanity

@fjeremic
Copy link
Contributor

fjeremic commented Jul 4, 2018

Windows tests failing with:

NPT ERROR: Cannot open library

Looks like infrastructure issues.

@fjeremic fjeremic merged commit 268a2fb into eclipse-openj9:master Jul 5, 2018
fjeremic added a commit to fjeremic/openj9 that referenced this pull request Feb 12, 2019
In eclipse-openj9#4597 we identified cases on which `toUpperCase` fails on Linux on
Z. This is due to some faulty login in the evaluator for these
intrinsics on Z. Bugs seem to have been introduced in eclipse-openj9#2318 for certain
characters. Namely the test in eclipse-openj9#4597 fails to convert the `\u00FF`
character. The bug is obvious, since `toUpperCase` of such a character
cannot be handled and the JIT evaluator determines the invalid
character range by checking if the character is greater than 0xFF, but
it should be checking if greater than or equal to.

In addition the compressed String evaluator also fails on 0xB5 as
determined by the unit tests. Both issues are fixed.

Fixes: eclipse-openj9#4597

Signed-off-by: Filip Jeremic <fjeremic@ca.ibm.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants