RFR: 8332084: Ensure JdkConsoleImpl.restoreEcho visibility in a shutdown hook [v3]
Naoto Sato
naoto at openjdk.org
Mon May 13 21:32:19 UTC 2024
On Mon, 13 May 2024 17:06:32 GMT, Naoto Sato <naoto at openjdk.org> wrote:
>> Making sure `restoreEcho` correctly reflects the state in the shutdown thread, which differs from the application's thread that issues the `readPassword()` method.
>
> Naoto Sato has updated the pull request incrementally with one additional commit since the last revision:
>
> Replaced another unused exception with _
Right, making the field volatile is a much safer solution.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/19184#issuecomment-2108832766
More information about the core-libs-dev
mailing list