Open briandealwis opened 7 years ago
I suspect this is the following line:
if(top.compareTo(activeWork) < 0) { // is top-most higher priority than active?
activeWork.cancel(); // if so, cancel active
if(isAwaited(activeWork.getConsultation())) {
outstandingConsultations.offer(activeWork); // ensure outstanding is eventually completed
}
if(isAwaited(activeWork.getConsultation())) {
and activeWork
is being modified outside of synchronization.
Noticed the following on my console: