diff options
author | Yash Tibrewal <yashkt@google.com> | 2018-04-30 17:48:42 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-04-30 17:48:42 -0700 |
commit | bdc523af68d4c9262aa6e37e3e82b920ec4b5f31 (patch) | |
tree | c59e1ba03a2d70b2fbebf7577fa2c80b0aa02d38 /src/core | |
parent | 2f516a91a77105c4386255894e31fcd316e2902d (diff) | |
parent | 9d56762f0431bf63b5d7656a6c3c9a83c86ec543 (diff) |
Merge pull request #15205 from yashykt/gprassert
Replace assert in closures with GPR_ASSERT
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/lib/iomgr/closure.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/lib/iomgr/closure.h b/src/core/lib/iomgr/closure.h index 64527d6bb1..34a494485d 100644 --- a/src/core/lib/iomgr/closure.h +++ b/src/core/lib/iomgr/closure.h @@ -253,8 +253,8 @@ inline void grpc_closure_run(grpc_closure* c, grpc_error* error) { c->file_initiated = file; c->line_initiated = line; c->run = true; + GPR_ASSERT(c->cb != nullptr); #endif - assert(c->cb); c->scheduler->vtable->run(c, error); } else { GRPC_ERROR_UNREF(error); @@ -292,8 +292,8 @@ inline void grpc_closure_sched(grpc_closure* c, grpc_error* error) { c->file_initiated = file; c->line_initiated = line; c->run = false; + GPR_ASSERT(c->cb != nullptr); #endif - assert(c->cb); c->scheduler->vtable->sched(c, error); } else { GRPC_ERROR_UNREF(error); @@ -330,8 +330,8 @@ inline void grpc_closure_list_sched(grpc_closure_list* list) { c->file_initiated = file; c->line_initiated = line; c->run = false; + GPR_ASSERT(c->cb != nullptr); #endif - assert(c->cb); c->scheduler->vtable->sched(c, c->error_data.error); c = next; } |