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

Add comments to JIT recognized methods for encoding/decoding #20864

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

knn-k
Copy link
Contributor

@knn-k knn-k commented Dec 20, 2024

This commit adds comments to some encoding/decoding methods that are recognized by the JIT.
Only limited Java versions use these methods.

This commit adds comments to some encoding/decoding methods that
are recognized by the JIT.
Only limited Java versions use these methods.
@knn-k knn-k added the comp:jit label Dec 20, 2024
@knn-k
Copy link
Contributor Author

knn-k commented Dec 20, 2024

See PR #20520 for the background.

@knn-k
Copy link
Contributor Author

knn-k commented Dec 20, 2024

Jenkins compile xlinux jdk11

Comment on lines +3779 to +3787
{x(TR::sun_nio_cs_ISO_8859_1_Decoder_decodeISO8859_1, "decodeISO8859_1", "([BII[CI)I")}, // Used in IBM SDK
{x(TR::sun_nio_cs_US_ASCII_Encoder_encodeASCII, "encodeASCII", "([CII[BI)I")}, // Used in Java 8 and 11
{x(TR::sun_nio_cs_US_ASCII_Decoder_decodeASCII, "decodeASCII", "([BII[CI)I")}, // Used in Java 8 and 11
{x(TR::sun_nio_cs_ext_SBCS_Encoder_encodeSBCS, "encodeSBCS", "([CII[BI[B)I")}, // Used in IBM SDK
{x(TR::sun_nio_cs_ext_SBCS_Decoder_decodeSBCS, "decodeSBCS", "([BII[CI[C)I")}, // Used in IBM SDK
{x(TR::sun_nio_cs_UTF_8_Encoder_encodeUTF_8, "encodeUTF_8", "([CII[BI)I")}, // Used in IBM SDK
{x(TR::sun_nio_cs_UTF_8_Decoder_decodeUTF_8, "decodeUTF_8", "([BII[CI)I")}, // Used in IBM SDK
{x(TR::sun_nio_cs_UTF16_Encoder_encodeUTF16Big, "encodeUTF16Big", "([CII[BI)I")}, // Used in IBM SDK
{x(TR::sun_nio_cs_UTF16_Encoder_encodeUTF16Little, "encodeUTF16Little", "([CII[BI)I")}, // Used in IBM SDK
Copy link
Member

Choose a reason for hiding this comment

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

@knn-k, @r30shah, for the methods that are used in IBM SDK, I think it might be helpful to note if these are used only in specific versions or specific operating systems/hardware architectures.

Copy link
Contributor

Choose a reason for hiding this comment

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

I do agree. As most of these methods shipped as in JCL in IBM SDK 8. It should be present on all platforms though (It is a different story if platform recognize and accelerates it or not).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

So what kind of changes do you want me to make?
Updating the comment "Used in IBM SDK" to "Used in IBM SDK Java 8"?

@knn-k knn-k marked this pull request as ready for review January 7, 2025 07:22
@knn-k knn-k requested a review from dsouzai as a code owner January 7, 2025 07:22
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.

3 participants