Mps br auto_header: cannot segfree nailed seg if it has a buffer

Copied from Perforce
 Change: 164851
 ServerID: perforce.ravenbrook.com
This commit is contained in:
Richard Kistruck 2008-04-29 15:09:12 +01:00
parent 28f802331a
commit e53943f8fd

View file

@ -1962,10 +1962,10 @@ static void amcReclaimNailed(Pool pool, Trace trace, Seg seg)
if(amcSegHasNailboard(seg)) {
amcSegDestroyNailboard(seg, pool);
}
if(emptySeg) {
if(emptySeg && (SegBuffer(seg) == NULL)) {
/* fix .nailboard.limitations.middle */
amcGen gen = amcSegGen(seg);
--gen->segs;
gen->pgen.totalSize -= SegSize(seg);