diff options
author | 2017-03-21 09:39:11 -0700 | |
---|---|---|
committer | 2017-03-21 09:39:11 -0700 | |
commit | 60a41907a0bbb24be89a421ca8ba8fb60a30e773 (patch) | |
tree | 59055f407186565b4a200c8ecb76a69fd29c1f2e | |
parent | 379be59d0aa65e88ac3754bb3dc4635931263714 (diff) |
Remove delete assertion on base class and change to full fetch-add
-rw-r--r-- | include/grpc++/impl/codegen/call.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/include/grpc++/impl/codegen/call.h b/include/grpc++/impl/codegen/call.h index 69fe21d024..04296dbe15 100644 --- a/include/grpc++/impl/codegen/call.h +++ b/include/grpc++/impl/codegen/call.h @@ -537,12 +537,11 @@ class CallOpSetCollectionInterface { } // always allocated against a call arena, no memory free required static void operator delete(void* ptr, std::size_t size) { - assert(size == sizeof(CallOpSetCollectionInterface)); } void Ref() { gpr_atm_no_barrier_fetch_add(&refs_, static_cast<gpr_atm>(1)); } bool Unref() { gpr_atm old = - gpr_atm_no_barrier_fetch_add(&refs_, static_cast<gpr_atm>(-1)); + gpr_atm_full_fetch_add(&refs_, static_cast<gpr_atm>(-1)); return (old == static_cast<gpr_atm>(1)); } |