[infinispan-dev] Adaptive marshaller buffer sizes - ISPN-1102

Manik Surtani manik at jboss.org
Tue Jun 14 07:24:21 EDT 2011


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
manik at jboss.org
twitter.com/maniksurtani

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





More information about the infinispan-dev mailing list