1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-06 20:00:46 -08:00

Mps br/auto_header: trial fix of job001784 "amc pool + auto_header format: nailboards leak controlpool memory"

Passes test_runner.py (as it did before the fix).

Copied from Perforce
 Change: 164379
 ServerID: perforce.ravenbrook.com
This commit is contained in:
Richard Kistruck 2008-03-11 19:18:50 +00:00
parent 9c7bb1cb44
commit f354d65840

View file

@ -736,7 +736,13 @@ static void amcSegDestroyNailboard(Seg seg, Pool pool)
AVERT(amcNailboard, board);
arena = PoolArena(pool);
#if 0
/* Believed bug; see job001784 */
bits = SegSize(seg) >> board->markShift;
#else
/* See d.m.p.Nailboard.size. */
bits = (SegSize(seg) + pool->format->headerSize) >> board->markShift;
#endif
ControlFree(arena, board->mark, BTSize(bits));
board->sig = SigInvalid;
ControlFree(arena, board, sizeof(amcNailboardStruct));