Abort recoveries before popping if better versions already exist

This commit is contained in:
Max Brunsfeld 2017-09-13 09:56:51 -07:00
parent 65ed4281d4
commit 07fb3ab0e6
3 changed files with 17 additions and 1 deletions

View file

@ -492,7 +492,11 @@ inline StackIterateAction summarize_stack_callback(void *payload, const Iterator
if (entry.depth < depth) break;
if (entry.depth == depth && entry.state == state) return StackIterateNone;
}
array_push(session->summary, ((StackSummaryEntry){.depth = depth, .state = state}));
array_push(session->summary, ((StackSummaryEntry){
.position = iterator->node->position,
.depth = depth,
.state = state,
}));
return StackIterateNone;
}