Merge pull request #13776 from ncteisen/executor-tsan

Fix shutdown executor tsan bug
pull/13788/merge
Noah Eisen 7 years ago committed by GitHub
commit 28839ce3a8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/core/lib/iomgr/executor.cc

@ -242,7 +242,7 @@ static void executor_push(grpc_closure* closure, grpc_error* error,
}
continue;
}
if (grpc_closure_list_empty(ts->elems)) {
if (grpc_closure_list_empty(ts->elems) && !ts->shutdown) {
GRPC_STATS_INC_EXECUTOR_WAKEUP_INITIATED();
gpr_cv_signal(&ts->cv);
}

Loading…
Cancel
Save