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

Alan Bateman alanb at openjdk.org
Mon Aug 1 07:56:36 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.

Marked as reviewed by alanb (Reviewer).

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

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


More information about the nio-dev mailing list