Don't instantiate ExecCtx in channel_args destructor unless needed (#26332)

pull/26249/head^2
Vijay Pai 4 years ago committed by GitHub
parent c672bf94c1
commit 3eb96489f4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/cpp/common/channel_arguments.cc

@ -66,9 +66,9 @@ ChannelArguments::ChannelArguments(const ChannelArguments& other)
}
ChannelArguments::~ChannelArguments() {
grpc_core::ExecCtx exec_ctx;
for (auto& arg : args_) {
if (arg.type == GRPC_ARG_POINTER) {
grpc_core::ExecCtx exec_ctx;
arg.value.pointer.vtable->destroy(arg.value.pointer.p);
}
}

Loading…
Cancel
Save