Speed up copy_error_and_unref

pull/9778/head
ncteisen 8 years ago
parent 2c94aaeaba
commit 311f7f1eaf
  1. 2
      src/core/lib/iomgr/error.c

@ -262,6 +262,8 @@ static grpc_error *copy_error_and_unref(grpc_error *in) {
GRPC_ERROR_INT_GRPC_STATUS, GRPC_STATUS_CANCELLED);
else
out = GRPC_ERROR_CREATE("unknown");
} else if (gpr_ref_is_unique(&in->refs)) {
return in;
} else {
out = gpr_malloc(sizeof(*out));
#ifdef GRPC_ERROR_REFCOUNT_DEBUG

Loading…
Cancel
Save