Why do you think that this code is a problem? The instance in question is limited to a single thread.
On Tue, Aug 18, 2020 at 10:27 AM happen <370119...@qq.com> wrote: > Hi > > > I think may be there is a little risk when running > MultiTxn's serialize txns.get(vidx1) step. Because probably the txns' size > is changing that time in the future. > > > ``` > public void serialize(OutputArchive a_, String tag) throws > java.io.IOException { > a_.startRecord(this,tag); > { > a_.startVector(txns,"txns"); > if (txns!= null) { int > len1 = txns.size(); > for(int vidx1 = 0; vidx1<len1; vidx1++) { > Txn e1 = (Txn) txns.get(vidx1); > a_.writeRecord(e1,"e1"); > } > } > a_.endVector(txns,"txns"); > } > a_.endRecord(this,tag); > } > ```