On Mon, 22 Feb 2021 20:31:01 GMT, Pavel Rappo <pra...@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

Reply via email to