Skip to content

Commit

Permalink
Issue_35989 Potential Crash in GRPC code
Browse files Browse the repository at this point in the history
  • Loading branch information
mahinpandya committed Sep 24, 2024
1 parent 97f22ce commit 48db30d
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions src/core/lib/promise/activity.h
Original file line number Diff line number Diff line change
Expand Up @@ -668,11 +668,13 @@ ActivityPtr MakeActivity(Factory promise_factory,
}

inline Pending IntraActivityWaiter::pending() {
const auto new_wakeups = GetContext<Activity>()->CurrentParticipant();
GRPC_TRACE_LOG(promise_primitives, INFO)
<< "IntraActivityWaiter::pending: "
<< GRPC_DUMP_ARGS(this, new_wakeups, wakeups_);
wakeups_ |= new_wakeups;
if (Activity::current()) {
const auto new_wakeups = GetContext<Activity>()->CurrentParticipant();
GRPC_TRACE_LOG(promise_primitives, INFO)
<< "IntraActivityWaiter::pending: "
<< GRPC_DUMP_ARGS(this, new_wakeups, wakeups_);
wakeups_ |= new_wakeups;
}
return Pending();
}

Expand Down

0 comments on commit 48db30d

Please sign in to comment.