From c96fdff9ad0afc1b4232c7f22f5021e857e05548 Mon Sep 17 00:00:00 2001 From: Bela Ban Date: Tue, 23 Jan 2024 11:59:02 +0100 Subject: [PATCH] HashMap -> CocurrentHashMap (https://issues.redhat.com/browse/JGRP-2749) --- src/org/jgroups/protocols/UNICAST3.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/org/jgroups/protocols/UNICAST3.java b/src/org/jgroups/protocols/UNICAST3.java index ce828ddc13..b69e16e325 100644 --- a/src/org/jgroups/protocols/UNICAST3.java +++ b/src/org/jgroups/protocols/UNICAST3.java @@ -130,8 +130,9 @@ public class UNICAST3 extends Protocol implements AgeOutCache.Handler
{ protected final ReentrantLock recv_table_lock=new ReentrantLock(); - /** Used by the retransmit task to keep the last retransmitted seqno per sender (https://issues.redhat.com/browse/JGRP-1539) */ - protected final Map xmit_task_map=new HashMap<>(); + /** Used by the retransmit task to keep the last retransmitted seqno per member (applicable only + * for received messages (ReceiverEntry)): https://issues.redhat.com/browse/JGRP-1539 */ + protected final Map xmit_task_map=new ConcurrentHashMap<>(); /** RetransmitTask running every xmit_interval ms */ protected Future xmit_task;