Skip to content

Commit c96fdff

Browse files
committed
HashMap -> CocurrentHashMap (https://issues.redhat.com/browse/JGRP-2749)
1 parent 0f67c50 commit c96fdff

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/org/jgroups/protocols/UNICAST3.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,9 @@ public class UNICAST3 extends Protocol implements AgeOutCache.Handler<Address> {
130130

131131
protected final ReentrantLock recv_table_lock=new ReentrantLock();
132132

133-
/** Used by the retransmit task to keep the last retransmitted seqno per sender (https://issues.redhat.com/browse/JGRP-1539) */
134-
protected final Map<Address,Long> xmit_task_map=new HashMap<>();
133+
/** Used by the retransmit task to keep the last retransmitted seqno per member (applicable only
134+
* for received messages (ReceiverEntry)): https://issues.redhat.com/browse/JGRP-1539 */
135+
protected final Map<Address,Long> xmit_task_map=new ConcurrentHashMap<>();
135136

136137
/** RetransmitTask running every xmit_interval ms */
137138
protected Future<?> xmit_task;

0 commit comments

Comments
 (0)