mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 17:24:23 +00:00
Move the arenaemergency test up to policypollagain.
Copied from Perforce Change: 188217 ServerID: perforce.ravenbrook.com
This commit is contained in:
parent
ef62affc6d
commit
851e35bcff
2 changed files with 2 additions and 3 deletions
|
|
@ -333,7 +333,7 @@ Bool PolicyPollAgain(Arena arena, Clock start, Work tracedWork)
|
|||
AVER(nextPollThreshold > globals->pollThreshold);
|
||||
globals->pollThreshold = nextPollThreshold;
|
||||
|
||||
return PolicyPoll(arena);
|
||||
return ArenaEmergency(arena) || PolicyPoll(arena);
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1871,8 +1871,7 @@ Work TracePoll(Globals globals)
|
|||
endWork = oldWork + trace->quantumWork;
|
||||
do {
|
||||
TraceAdvance(trace);
|
||||
} while (trace->state != TraceFINISHED
|
||||
&& (ArenaEmergency(arena) || traceWork(trace) < endWork));
|
||||
} while (trace->state != TraceFINISHED && traceWork(trace) < endWork);
|
||||
newWork = traceWork(trace);
|
||||
AVER(newWork >= oldWork);
|
||||
work = newWork - oldWork;
|
||||
|
|
|
|||
Loading…
Reference in a new issue