1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-08 04:30:45 -08:00

Adding check for unexpected case of zone barging.

Copied from Perforce
 Change: 184583
 ServerID: perforce.ravenbrook.com
This commit is contained in:
Richard Brooksby 2014-02-27 17:50:44 +00:00
parent dee2b3438b
commit 2d685bee13

View file

@ -912,6 +912,9 @@ static Res arenaAllocPolicy(Tract *tractReturn, Arena arena, SegPref pref,
return ResCOMMIT_LIMIT;
}
}
/* FIXME: Think about this. We may have barged into a blacklisted zone. */
AVER(ZoneSetInter(pref->zones, pref->avoid) == ZoneSetEMPTY);
/* Plan A: allocate from the free CBS in the requested zones */
/* FIXME: Takes no account of other zones fields */