Fix grpc_init by removing exec_ctx usage before init

pull/13058/head
Yash Tibrewal 7 years ago
parent 45b7ad5cf5
commit 3285f4c732
  1. 3
      src/core/lib/iomgr/iomgr.cc
  2. 1
      src/core/lib/surface/init.cc

@ -50,8 +50,11 @@ void grpc_iomgr_init() {
gpr_mu_init(&g_mu);
gpr_cv_init(&g_rcv);
grpc_core::ExecCtx::GlobalInit();
{
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();

@ -116,7 +116,6 @@ void grpc_init(void) {
int i;
gpr_once_init(&g_basic_init, do_basic_init);
grpc_core::ExecCtx _local_exec_ctx;
gpr_mu_lock(&g_init_mu);
if (++g_initializations == 1) {
gpr_time_init();

Loading…
Cancel
Save