Integrated: 8260010: UTF8ZipCoder not thread-safe since JDK-8243469

Claes Redestad redestad at
Wed Jan 20 23:45:57 UTC 2021

On Wed, 20 Jan 2021 12:21:21 GMT, Claes Redestad <redestad at> wrote:

> This patch resolves a thread-safety issue where the singleton UTF8ZipCoder is erroneously using a shared CharsetDecoder when the fast-path fails. It needs to go via creating a new String like before JDK-8243469
> This should resolve a rare issue when doing a lot of jar scanning in parallel on jar/zip files (with at least some non-ASCII entries), but I've not managed to create a test that reliably reproduce the issue.

This pull request has now been integrated.

Changeset: 1f47de5f
Author:    Claes Redestad <redestad at>
Stats:     9 lines in 1 file changed: 6 ins; 0 del; 3 mod

8260010: UTF8ZipCoder not thread-safe since JDK-8243469

Reviewed-by: lancea



More information about the core-libs-dev mailing list