diff --git a/include/grpc/support/log.h b/include/grpc/support/log.h index 7521453b80e..b6fbbde23cc 100644 --- a/include/grpc/support/log.h +++ b/include/grpc/support/log.h @@ -93,7 +93,7 @@ GPRAPI void gpr_set_log_function(gpr_log_func func); an exception in a higher-level language, consider returning error code. */ #define GPR_ASSERT(x) \ do { \ - if (!(x)) { \ + if (GPR_UNLIKELY(!(x))) { \ gpr_log(GPR_ERROR, "assertion failed: %s", #x); \ abort(); \ } \