Integrated: 8291061: Improve thread safety of FileTime.toString and toInstant

Andrey Turbanov aturbanov at openjdk.org
Fri Aug 5 06:58:58 UTC 2022


On Fri, 22 Jul 2022 07:34:19 GMT, Andrey Turbanov <aturbanov at openjdk.org> wrote:

> We need to read fields `instant`/`valueAsString` once, as to dodge/resolve the data race on reading lazily-initialized fields.

This pull request has now been integrated.

Changeset: 6e7cd762
Author:    Andrey Turbanov <aturbanov at openjdk.org>
URL:       https://git.openjdk.org/jdk/commit/6e7cd7627d7e5c885b34afb1cb9458221a279e08
Stats:     6 lines in 1 file changed: 5 ins; 0 del; 1 mod

8291061: Improve thread safety of FileTime.toString and toInstant

Reviewed-by: alanb

-------------

PR: https://git.openjdk.org/jdk/pull/9608


More information about the nio-dev mailing list