Skip to content

Commit

Permalink
#1507: Reset epoch_stack_size_ in TD::resume() in case underlying sta…
Browse files Browse the repository at this point in the history
…ck has changed from when TD::suspend() was called
  • Loading branch information
PhilMiller committed Jul 22, 2021
1 parent e96ce0a commit 5179013
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/vt/context/runnable_context/td.cc
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ void TD::suspend() {
void TD::resume() {
theMsg()->pushEpoch(ep_);

auto& epoch_stack = theMsg()->getEpochStack();
base_epoch_stack_size_ = epoch_stack.size();

for (auto it = suspended_epochs_.rbegin();
it != suspended_epochs_.rend();
++it) {
Expand Down

0 comments on commit 5179013

Please sign in to comment.