mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-03-24 07:41:54 -07:00
Vmarenagrow now passes on the result code from vmchunkcreate, instead of substituting resresource under the circumstances described in job003899.
Copied from Perforce Change: 187489 ServerID: perforce.ravenbrook.com
This commit is contained in:
parent
052f53e367
commit
e2d03a9b0e
1 changed files with 1 additions and 1 deletions
|
|
@ -737,13 +737,13 @@ static Res VMArenaGrow(Arena arena, LocusPref pref, Size size)
|
|||
if (chunkSize < chunkMin)
|
||||
chunkSize = chunkMin;
|
||||
|
||||
res = ResRESOURCE;
|
||||
for(;; chunkSize = chunkHalf) {
|
||||
chunkHalf = chunkSize / 2;
|
||||
sliceSize = chunkHalf / fidelity;
|
||||
AVER(sliceSize > 0);
|
||||
|
||||
/* remove slices, down to chunkHalf but no further */
|
||||
res = ResRESOURCE;
|
||||
for(; chunkSize > chunkHalf; chunkSize -= sliceSize) {
|
||||
if(chunkSize < chunkMin) {
|
||||
EVENT2(vmArenaExtendFail, chunkMin,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue