On 14 Jun 2011, at 12:15, Bela Ban wrote:

> +1.
> 
> 
> There is also something else I wanted to bring to your attention. When 
> you pass reference byte[] BUF to JGroups, JGroups will store BUF in the 
> org.jgroups.Message MSG.
> 
> MSG is subsequently stored in the retransmission table of NAKACK.
> 
> If you now modify the contents of BUF, you will modify a subsequent 
> potential retransmission of MSG as well !
> 
> I don't think this is done currently (Infinispan uses a new buffer every 
> time), but just make sure buffer reuse doesn't get rolled into a new 
> design...

Good point.

--
Manik Surtani
ma...@jboss.org
twitter.com/maniksurtani

Lead, Infinispan
http://www.infinispan.org



_______________________________________________
infinispan-dev mailing list
infinispan-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/infinispan-dev

Reply via email to