RFR: JDK-8002152: javadoc could write out files on a worker thread
Jonathan Gibbons
jjg at openjdk.java.net
Mon Feb 22 21:03:40 UTC 2021
On Mon, 22 Feb 2021 20:31:01 GMT, Pavel Rappo <prappo at openjdk.org> wrote:
>> I don't understand why you think it is important to check `taskBusy`. If nothing else, this is only in the verbose/utilization code.
>
> `taskBusy` is accessed from multiple threads. Since those accesses are conflicting they should be correctly synchronized, which currently they are not. Also see: https://github.com/openjdk/jdk/pull/2665#issuecomment-783378558
Understood; I'm changing it to `AtomicLong` and using `AtomicLong.addAndget`
-------------
PR: https://git.openjdk.java.net/jdk/pull/2665
More information about the javadoc-dev
mailing list