diff --git a/src/core/lib/surface/completion_queue.cc b/src/core/lib/surface/completion_queue.cc index 140505a8b49..0ca8027ab21 100644 --- a/src/core/lib/surface/completion_queue.cc +++ b/src/core/lib/surface/completion_queue.cc @@ -349,10 +349,14 @@ struct cq_callback_data { struct grpc_completion_queue { /// Once owning_refs drops to zero, we will destroy the cq grpc_core::RefCount owning_refs; - + /// Add the paddings to fix the false sharing + char padding_1[GPR_CACHELINE_SIZE]; gpr_mu* mu; + char padding_2[GPR_CACHELINE_SIZE]; const cq_vtable* vtable; + + char padding_3[GPR_CACHELINE_SIZE]; const cq_poller_vtable* poller_vtable; #ifndef NDEBUG