mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-20 11:33:09 -08:00
Don't reclaim buffered segs
Copied from Perforce Change: 19643 ServerID: perforce.ravenbrook.com
This commit is contained in:
parent
75048bb594
commit
5966e61624
1 changed files with 3 additions and 3 deletions
|
|
@ -1,6 +1,6 @@
|
|||
/* impl.c.poolams: AUTOMATIC MARK & SWEEP POOL CLASS
|
||||
*
|
||||
* $HopeName$
|
||||
* $HopeName: MMsrc!poolams.c(trunk.23) $
|
||||
* Copyright (C) 1998. Harlequin Group plc. All rights reserved.
|
||||
*
|
||||
* .readership: any MPS developer.
|
||||
|
|
@ -26,7 +26,7 @@
|
|||
#include "mpm.h"
|
||||
#include <stdarg.h>
|
||||
|
||||
SRCID(poolams, "$HopeName: MMsrc!poolams.c(trunk.22) $");
|
||||
SRCID(poolams, "$HopeName: MMsrc!poolams.c(trunk.23) $");
|
||||
|
||||
|
||||
#define AMSSig ((Sig)0x519A3599) /* SIGnature AMS */
|
||||
|
|
@ -926,7 +926,7 @@ void AMSReclaim(Pool pool, Trace trace, Seg seg)
|
|||
group->free += reclaimed;
|
||||
trace->reclaimSize += reclaimed << ams->grainShift;
|
||||
|
||||
if(group->free == group->grains) {
|
||||
if(group->free == group->grains && SegBuffer(seg) == NULL) {
|
||||
/* No survivors */
|
||||
AMSGroupDestroy(group);
|
||||
/* design.mps.poolams.benefit.guess */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue