clang-format

reviewable/pr17308/r1
yang-g 6 years ago
parent 483e0ad3f2
commit 864cea2081
  1. 3
      src/core/lib/surface/init.cc
  2. 3
      test/core/util/memory_counters.cc

@ -177,8 +177,7 @@ void grpc_shutdown_internal(void* ignored) {
grpc_core::ExecCtx exec_ctx(0);
grpc_iomgr_shutdown_background_closure();
{
grpc_timer_manager_set_threading(
false); // shutdown timer_manager thread
grpc_timer_manager_set_threading(false); // shutdown timer_manager thread
grpc_executor_shutdown();
for (i = g_number_of_plugins; i >= 0; i--) {
if (g_all_of_the_plugins[i].destroy != nullptr) {

@ -126,9 +126,8 @@ LeakDetector::~LeakDetector() {
// Wait for grpc_shutdown() to finish its async work.
grpc_maybe_wait_for_async_shutdown();
struct grpc_memory_counters counters = grpc_memory_counters_snapshot();
grpc_memory_counters_snapshot();
if (counters.total_size_relative != 0) {
gpr_log(GPR_ERROR, "Leaking %" PRIuPTR "bytes",
gpr_log(GPR_ERROR, "Leaking %" PRIuPTR " bytes",
static_cast<uintptr_t>(counters.total_size_relative));
GPR_ASSERT(0);
}

Loading…
Cancel
Save