aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/lib/iomgr/call_combiner.cc
diff options
context:
space:
mode:
authorGravatar Soheil Hassas Yeganeh <soheil@cs.toronto.edu>2018-11-05 12:10:03 -0500
committerGravatar GitHub <noreply@github.com>2018-11-05 12:10:03 -0500
commitb41a44dc2e001358602e8e885c674ddc49387edd (patch)
treed2f0c6d01ea7f47daebc288969032572b604af87 /src/core/lib/iomgr/call_combiner.cc
parent7109bd1c6563c09daa7b36139170a9f41d603ddf (diff)
parent48e4a81b05f2ad6541d72e819cd4f638055f13d5 (diff)
Merge pull request #16944 from soheilhy/worktree-memset
Remove memset(0) from arena allocate memory.
Diffstat (limited to 'src/core/lib/iomgr/call_combiner.cc')
-rw-r--r--src/core/lib/iomgr/call_combiner.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/lib/iomgr/call_combiner.cc b/src/core/lib/iomgr/call_combiner.cc
index 00a839b64c..90dda45ba3 100644
--- a/src/core/lib/iomgr/call_combiner.cc
+++ b/src/core/lib/iomgr/call_combiner.cc
@@ -40,6 +40,8 @@ static gpr_atm encode_cancel_state_error(grpc_error* error) {
}
void grpc_call_combiner_init(grpc_call_combiner* call_combiner) {
+ gpr_atm_no_barrier_store(&call_combiner->cancel_state, 0);
+ gpr_atm_no_barrier_store(&call_combiner->size, 0);
gpr_mpscq_init(&call_combiner->queue);
}