From 8d4abffe727b680edfb295aec2252f3d5f1909dc Mon Sep 17 00:00:00 2001 From: KONNO Kazuhiro Date: Fri, 20 Dec 2024 13:50:24 +0900 Subject: [PATCH] Add comments to JIT recognized methods for encoding/decoding This commit adds comments to some encoding/decoding methods that are recognized by the JIT. Only limited Java versions use these methods. --- runtime/compiler/env/j9method.cpp | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/runtime/compiler/env/j9method.cpp b/runtime/compiler/env/j9method.cpp index bdd78d93639..e37f094d031 100644 --- a/runtime/compiler/env/j9method.cpp +++ b/runtime/compiler/env/j9method.cpp @@ -3776,15 +3776,15 @@ void TR_ResolvedJ9Method::construct() { {x(TR::sun_nio_cs_ISO_8859_1_Encoder_encodeArrayLoop, "encodeArrayLoop", "(Ljava/nio/CharBuffer;Ljava/nio/ByteBuffer;)Ljava/nio/charset/CoderResult;")}, {x(TR::sun_nio_cs_ISO_8859_1_Encoder_encodeISOArray, "encodeISOArray", "([CI[BII)I")}, - {x(TR::sun_nio_cs_ISO_8859_1_Decoder_decodeISO8859_1, "decodeISO8859_1", "([BII[CI)I")}, - {x(TR::sun_nio_cs_US_ASCII_Encoder_encodeASCII, "encodeASCII", "([CII[BI)I")}, - {x(TR::sun_nio_cs_US_ASCII_Decoder_decodeASCII, "decodeASCII", "([BII[CI)I")}, - {x(TR::sun_nio_cs_ext_SBCS_Encoder_encodeSBCS, "encodeSBCS", "([CII[BI[B)I")}, - {x(TR::sun_nio_cs_ext_SBCS_Decoder_decodeSBCS, "decodeSBCS", "([BII[CI[C)I")}, - {x(TR::sun_nio_cs_UTF_8_Encoder_encodeUTF_8, "encodeUTF_8", "([CII[BI)I")}, - {x(TR::sun_nio_cs_UTF_8_Decoder_decodeUTF_8, "decodeUTF_8", "([BII[CI)I")}, - {x(TR::sun_nio_cs_UTF16_Encoder_encodeUTF16Big, "encodeUTF16Big", "([CII[BI)I")}, - {x(TR::sun_nio_cs_UTF16_Encoder_encodeUTF16Little, "encodeUTF16Little", "([CII[BI)I")}, + {x(TR::sun_nio_cs_ISO_8859_1_Decoder_decodeISO8859_1, "decodeISO8859_1", "([BII[CI)I")}, // Used in IBM SDK Java 8 + {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 Java 8 + {x(TR::sun_nio_cs_ext_SBCS_Decoder_decodeSBCS, "decodeSBCS", "([BII[CI[C)I")}, // Used in IBM SDK Java 8 + {x(TR::sun_nio_cs_UTF_8_Encoder_encodeUTF_8, "encodeUTF_8", "([CII[BI)I")}, // Used in IBM SDK Java 8 + {x(TR::sun_nio_cs_UTF_8_Decoder_decodeUTF_8, "decodeUTF_8", "([BII[CI)I")}, // Used in IBM SDK Java 8 + {x(TR::sun_nio_cs_UTF16_Encoder_encodeUTF16Big, "encodeUTF16Big", "([CII[BI)I")}, // Used in IBM SDK Java 8 + {x(TR::sun_nio_cs_UTF16_Encoder_encodeUTF16Little, "encodeUTF16Little", "([CII[BI)I")}, // Used in IBM SDK Java 8 { TR::unknownMethod} };