mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-04-23 06:21:29 -07:00
Don't return resparam from mps_arena_vm_growth if desired < minimum: this is a static programming error (not a dynamic condition) so aver instead.
Copied from Perforce Change: 187057 ServerID: perforce.ravenbrook.com
This commit is contained in:
parent
aefd6f67f9
commit
64625eee6e
1 changed files with 2 additions and 5 deletions
|
|
@ -1169,11 +1169,8 @@ mps_res_t mps_arena_vm_growth(mps_arena_t mps_arena,
|
|||
vmArena = Arena2VMArena(arena);
|
||||
AVERT(VMArena, vmArena);
|
||||
|
||||
if(desired < minimum) {
|
||||
/* May not desire an increment smaller than the minimum! */
|
||||
ArenaLeave(arena);
|
||||
return MPS_RES_PARAM;
|
||||
}
|
||||
/* Must desire at least the minimum increment! */
|
||||
AVER(desired >= minimum);
|
||||
|
||||
vmArena->extendBy = desired;
|
||||
vmArena->extendMin = minimum;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue