aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/iomgr
diff options
context:
space:
mode:
authorGravatar Yash Tibrewal <yashkt@google.com>2017-11-27 15:58:44 -0800
committerGravatar Yash Tibrewal <yashkt@google.com>2017-11-27 15:58:44 -0800
commit3285f4c7329bf4305133be74f88dd4b10d5e2052 (patch)
tree936ee957e2eaaa4ed16ac0e16feae6fdacf45499 /src/core/lib/iomgr
parent45b7ad5cf51ad97314d769ed70cfcda53d41b9d1 (diff)
Fix grpc_init by removing exec_ctx usage before init
Diffstat (limited to 'src/core/lib/iomgr')
-rw-r--r--src/core/lib/iomgr/iomgr.cc7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/core/lib/iomgr/iomgr.cc b/src/core/lib/iomgr/iomgr.cc
index f3f080e315..3bad17a54e 100644
--- a/src/core/lib/iomgr/iomgr.cc
+++ b/src/core/lib/iomgr/iomgr.cc
@@ -50,8 +50,11 @@ void grpc_iomgr_init() {
gpr_mu_init(&g_mu);
gpr_cv_init(&g_rcv);
grpc_core::ExecCtx::GlobalInit();
- grpc_executor_init();
- grpc_timer_list_init();
+ {
+ grpc_core::ExecCtx _local_exec_ctx;
+ grpc_executor_init();
+ grpc_timer_list_init();
+ }
g_root_object.next = g_root_object.prev = &g_root_object;
g_root_object.name = (char*)"root";
grpc_network_status_init();