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

Stop recognizing UTF16_Encoder.encodeUTF16 methods #7548

Merged
merged 1 commit into from
Nov 29, 2024

Conversation

knn-k
Copy link
Contributor

@knn-k knn-k commented Nov 18, 2024

This commit removes the code for encodeUTF16Big() and encodeUTF16Little() methods in sun.nio.cs.UTF16_Encoder from method recognition, and removes related helper functions.

@knn-k
Copy link
Contributor Author

knn-k commented Nov 18, 2024

Jenkins build all

@knn-k
Copy link
Contributor Author

knn-k commented Nov 18, 2024

This PR requires a coordinated merge with eclipse-openj9/openj9#20613.

Copy link
Contributor

@hzongaro hzongaro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe that the only uses of OMR::CodeGenerator::getSupportsEncodeUtf16LittleWithSurrogateTest, OMR::CodeGenerator::getSupportsEncodeUtf16BigWithSurrogateTest and the JIT option TR_DisableUTF16BEEncoder are being removed by OpenJ9 pull request eclipse-openj9/openj9#20613. I think those methods and option can be removed from OMR.

May I also ask you to correct the name of the class in the commit message? I believe it was named sun.nio.cs.UTF16_Encoder

@knn-k knn-k force-pushed the removeEncodeUTF16 branch from a9445ba to cf31fe8 Compare November 27, 2024 05:11
@knn-k knn-k changed the title Stop recognizing UTF_16.encodeUTF16 methods Stop recognizing UTF16_Encoder.encodeUTF16 methods Nov 27, 2024
@knn-k
Copy link
Contributor Author

knn-k commented Nov 27, 2024

Jenkins build all

@knn-k knn-k force-pushed the removeEncodeUTF16 branch from cf31fe8 to 613a8de Compare November 27, 2024 05:26
@knn-k
Copy link
Contributor Author

knn-k commented Nov 27, 2024

I removed the methods getSupportsEncodeUtf16LittleWithSurrogateTest() and getSupportsEncodeUtf16BigWithSurrogateTest(), and the JIT option TR_DisableUTF16BEEncoder as suggested.
I also corrected the class name in the commit title and the commit message.

@knn-k
Copy link
Contributor Author

knn-k commented Nov 27, 2024

Jenkins build all

This commit removes the code for encodeUTF16Big() and encodeUTF16Little()
methods in sun.nio.cs.UTF16_Encoder from method recognition, and removes
related helper functions.
@knn-k knn-k force-pushed the removeEncodeUTF16 branch from 613a8de to 707d080 Compare November 27, 2024 05:37
@knn-k
Copy link
Contributor Author

knn-k commented Nov 27, 2024

Jenkins build all

@knn-k
Copy link
Contributor Author

knn-k commented Nov 27, 2024

I additionally removed JIT options TR_DisableSIMDUTF16BEEncoder and TR_DisableSIMDUTF16LEEncoder.

Copy link
Contributor

@hzongaro hzongaro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thanks!

@hzongaro hzongaro merged commit 7a568a0 into eclipse-omr:master Nov 29, 2024
12 of 13 checks passed
@knn-k knn-k deleted the removeEncodeUTF16 branch November 29, 2024 21:56
knn-k added a commit to knn-k/omr that referenced this pull request Dec 2, 2024
This commit restores the helper entries for encodeUTF16Big
and encodeUTF16Little for p and x platforms that were removed
by eclipse-omr#7548.

Signed-off-by: KONNO Kazuhiro <[email protected]>
knn-k added a commit to knn-k/omr that referenced this pull request Dec 2, 2024
This commit restores the changes for encodeUTF16Big and encodeUTF16Little
that were removed by eclipse-omr#7548.

Signed-off-by: KONNO Kazuhiro <[email protected]>
knn-k added a commit to knn-k/omr that referenced this pull request Dec 2, 2024
This commit restores the helper entries for encodeUTF16Big
and encodeUTF16Little for p and x platforms that were removed
by eclipse-omr#7548.

Signed-off-by: KONNO Kazuhiro <[email protected]>
knn-k added a commit to knn-k/omr that referenced this pull request Dec 2, 2024
This commit restores the helper entries for encodeUTF16Big
and encodeUTF16Little for p and x platforms that were removed
by eclipse-omr#7548.

Signed-off-by: KONNO Kazuhiro <[email protected]>
knn-k added a commit to knn-k/omr that referenced this pull request Dec 2, 2024
This commit restores the helper entries for encodeUTF16Big
and encodeUTF16Little for p and x platforms that were removed
by eclipse-omr#7548.

Signed-off-by: KONNO Kazuhiro <[email protected]>
knn-k added a commit to knn-k/omr that referenced this pull request Dec 2, 2024
This commit restores the changes for encodeUTF16Big and encodeUTF16Little
that were removed by eclipse-omr#7548.

Signed-off-by: KONNO Kazuhiro <[email protected]>
knn-k added a commit to knn-k/omr that referenced this pull request Dec 2, 2024
This commit restores the changes for encodeUTF16Big and encodeUTF16Little
that were removed by eclipse-omr#7548.

Signed-off-by: KONNO Kazuhiro <[email protected]>
knn-k added a commit to knn-k/omr that referenced this pull request Dec 3, 2024
This commit restores the changes for encodeUTF16Big and encodeUTF16Little
that were removed by eclipse-omr#7548.

Signed-off-by: KONNO Kazuhiro <[email protected]>
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.

2 participants