On Mon, 25 Sep 2023 10:04:13 GMT, Chen Liang <li...@openjdk.org> wrote:
>>> UTF8 decoder does not perform any internal state mutation during decoding; >> >> Are you sure? I think `CharsetDecoder::decode` will modify the `status` >> field. > > right, it does have a `state` field. CharsetDecoder is specified to be not safe for use by multiple concurrent threads, would be too fragile to assume behavior of a specific implementation. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/15736#discussion_r1335672904