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:
parent
9c7bb1cb44
commit
f354d65840
1 changed files with 6 additions and 0 deletions
|
|
@ -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));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue