mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-03-23 15:22:20 -07:00
Collections now non-incremental. simple change to tracepoll to make collections do work until they are finished.
Copied from Perforce Change: 186964 ServerID: perforce.ravenbrook.com
This commit is contained in:
parent
e9bac9cb1e
commit
2d10c3a141
1 changed files with 4 additions and 1 deletions
|
|
@ -1817,6 +1817,7 @@ Size TracePoll(Globals globals)
|
|||
Res res;
|
||||
Arena arena;
|
||||
Size scannedSize;
|
||||
Bool incremental = FALSE;
|
||||
|
||||
AVERT(Globals, globals);
|
||||
arena = GlobalsArena(globals);
|
||||
|
|
@ -1888,7 +1889,9 @@ Size TracePoll(Globals globals)
|
|||
trace = ArenaTrace(arena, (TraceId)0);
|
||||
AVER(arena->busyTraces == TraceSetSingle(trace));
|
||||
oldScanned = traceWorkClock(trace);
|
||||
TraceQuantum(trace);
|
||||
do {
|
||||
TraceQuantum(trace);
|
||||
} while(!incremental && trace->state != TraceFINISHED);
|
||||
scannedSize = traceWorkClock(trace) - oldScanned;
|
||||
if(trace->state == TraceFINISHED) {
|
||||
TraceDestroy(trace);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue