Skip to content

Commit

Permalink
Revert "Setup Task:tg earlier to enable emergency debugging earlier"
Browse files Browse the repository at this point in the history
This reverts commit fbb9616.
  • Loading branch information
rocallahan committed Oct 14, 2023
1 parent fbb9616 commit ea7e165
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/Task.cc
Original file line number Diff line number Diff line change
Expand Up @@ -2439,6 +2439,7 @@ Task* Task::clone(CloneReason reason, int flags, remote_ptr<void> stack,
bool ok = t->wait();
ASSERT(t, ok) << "Task " << t->tid << " killed unexpectedly; not sure how to handle this";

t->post_wait_clone(this, flags);
if (CLONE_SHARE_THREAD_GROUP & flags) {
ASSERT(this, !new_tg);
t->tg = tg;
Expand All @@ -2451,8 +2452,6 @@ Task* Task::clone(CloneReason reason, int flags, remote_ptr<void> stack,
}
t->tg->insert_task(t);

t->post_wait_clone(this, flags);

t->open_mem_fd_if_needed();
t->thread_areas_ = thread_areas_;
if (CLONE_SET_TLS & flags) {
Expand Down

0 comments on commit ea7e165

Please sign in to comment.