From 54914ee42965bb0b5a1382b1b411a5ccb94012e3 Mon Sep 17 00:00:00 2001 From: Craig Tiller <craig.tiller@gmail.com> Date: Tue, 1 Dec 2015 06:23:44 -0800 Subject: [PATCH] Turn off refcount debugging --- src/core/client_config/lb_policies/round_robin.c | 2 -- src/core/client_config/lb_policy.h | 2 +- src/core/client_config/subchannel.c | 2 -- src/core/transport/transport.h | 2 +- 4 files changed, 2 insertions(+), 6 deletions(-) diff --git a/src/core/client_config/lb_policies/round_robin.c b/src/core/client_config/lb_policies/round_robin.c index 457b5d9252..f0b8ebe6fe 100644 --- a/src/core/client_config/lb_policies/round_robin.c +++ b/src/core/client_config/lb_policies/round_robin.c @@ -231,8 +231,6 @@ void rr_shutdown(grpc_exec_ctx *exec_ctx, grpc_lb_policy *pol) { pending_pick *pp; size_t i; -gpr_log(GPR_DEBUG, "LB_POLICY: rr_shutdown: p=%p num_subchannels=%d", p, p->num_subchannels); - gpr_mu_lock(&p->mu); p->shutdown = 1; diff --git a/src/core/client_config/lb_policy.h b/src/core/client_config/lb_policy.h index 988789c934..6754661745 100644 --- a/src/core/client_config/lb_policy.h +++ b/src/core/client_config/lb_policy.h @@ -78,7 +78,7 @@ struct grpc_lb_policy_vtable { grpc_closure *closure); }; -#define GRPC_LB_POLICY_REFCOUNT_DEBUG +/*#define GRPC_LB_POLICY_REFCOUNT_DEBUG*/ #ifdef GRPC_LB_POLICY_REFCOUNT_DEBUG #define GRPC_LB_POLICY_REF(p, r) \ grpc_lb_policy_ref((p), __FILE__, __LINE__, (r)) diff --git a/src/core/client_config/subchannel.c b/src/core/client_config/subchannel.c index a97c0b823c..9f802f1cc3 100644 --- a/src/core/client_config/subchannel.c +++ b/src/core/client_config/subchannel.c @@ -348,8 +348,6 @@ void grpc_subchannel_notify_on_state_change(grpc_exec_ctx *exec_ctx, int do_connect = 0; external_state_watcher *w; - gpr_log(GPR_DEBUG, "sc.nosc: c=%p s=%p n=%p", c, state, notify); - if (state == NULL) { gpr_mu_lock(&c->mu); for (w = c->root_external_state_watcher.next; diff --git a/src/core/transport/transport.h b/src/core/transport/transport.h index 08f34ff0aa..f94f0ae76e 100644 --- a/src/core/transport/transport.h +++ b/src/core/transport/transport.h @@ -50,7 +50,7 @@ typedef struct grpc_transport grpc_transport; for a stream. */ typedef struct grpc_stream grpc_stream; -#define GRPC_STREAM_REFCOUNT_DEBUG +/*#define GRPC_STREAM_REFCOUNT_DEBUG*/ typedef struct grpc_stream_refcount { gpr_refcount refs; -- GitLab