Merge pull request #20334 from grpc/revert-20297-thread_local

Revert "Clear thread local after use"
pull/20338/head
Yang Gao 5 years ago committed by GitHub
commit 5f9f63fca1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/core/lib/iomgr/executor.cc

@ -264,8 +264,6 @@ void Executor::ThreadMain(void* arg) {
grpc_core::ExecCtx::Get()->InvalidateNow();
subtract_depth = RunClosures(ts->name, closures);
}
// Clear the thread local after use.
gpr_tls_set(&g_this_thread_state, reinterpret_cast<intptr_t>(nullptr));
}
void Executor::Enqueue(grpc_closure* closure, grpc_error* error,

Loading…
Cancel
Save