RFR: 8310530: PipedOutputStream.flush() accesses sink racily [v2]
Sergey Tsypanov
stsypanov at openjdk.org
Fri Jun 23 08:54:05 UTC 2023
On Thu, 22 Jun 2023 21:00:18 GMT, Roger Riggs <rriggs at openjdk.org> wrote:
>> Sergey Tsypanov has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Update src/java.base/share/classes/java/io/PipedOutputStream.java
>>
>> Co-authored-by: liach <7806504+liach at users.noreply.github.com>
>
> I think the bug description should include a bit more detail along the lines that since the method reading and writing are synchronized, its not really a racy read. It does avoid reading the volatile value twice (a relatively expensive operation).
@RogerRiggs updated
-------------
PR Comment: https://git.openjdk.org/jdk/pull/14589#issuecomment-1603951233
More information about the core-libs-dev
mailing list