DataBus 性能优化 Lock Free

This commit is contained in:
王大锤
2021-05-19 16:10:44 +08:00
parent f1020b09e8
commit 6f5adc0675

View File

@@ -71,6 +71,7 @@ public class DataBus {
if(ObjectUtil.isNotNull(SLOTS.get(slotIndex))){
LOG.info("[{}]:slot[{}] released",SLOTS.get(slotIndex).getRequestId(),slotIndex);
SLOTS.set(slotIndex, null);
QUEUE.add(slotIndex);
OCCUPY_COUNT.decrementAndGet();
}else{
LOG.warn("slot[{}] already has been released",slotIndex);