1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-03-15 11:21:19 -07:00

Trying to create a freelist with too-small alignment is a static programming error, not a dynamic failure condition, so aver instead of returning resparam. (see job003485).

Copied from Perforce
 Change: 185426
 ServerID: perforce.ravenbrook.com
This commit is contained in:
Gareth Rees 2014-04-10 13:02:22 +01:00
parent 4d29cf2757
commit a595c2ff20

View file

@ -187,8 +187,7 @@ static Res freelistInit(Land land, ArgList args)
return res;
/* See <design/freelist/#impl.grain> */
if (!AlignIsAligned(LandAlignment(land), freelistMinimumAlignment))
return ResPARAM;
AVER(AlignIsAligned(LandAlignment(land), freelistMinimumAlignment));
fl = freelistOfLand(land);
fl->list = NULL;