aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar Craig Tiller <ctiller@google.com>2017-03-14 11:01:52 -0700
committerGravatar Craig Tiller <ctiller@google.com>2017-03-14 11:01:52 -0700
commitd26250be35a0e0921cb97f43b13ce14343ee4c7d (patch)
treed274b0568504cf0b1bb9dfc1ba1df4a000685f4f /src
parentff23f801c5fbb67d42b70c4ba0ba28ae2a7d31ae (diff)
Get growth right
Diffstat (limited to 'src')
-rw-r--r--src/core/lib/support/arena.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/lib/support/arena.c b/src/core/lib/support/arena.c
index 6610acd3a0..7bcb983f24 100644
--- a/src/core/lib/support/arena.c
+++ b/src/core/lib/support/arena.c
@@ -78,8 +78,7 @@ void *gpr_arena_alloc(gpr_arena *arena, size_t size) {
while (start > z->size_end) {
zone *next_z = (zone *)gpr_atm_acq_load(&z->next_atm);
if (next_z == NULL) {
- size_t next_z_size =
- GPR_MAX((size_t)gpr_atm_no_barrier_load(&arena->size_so_far), size);
+ size_t next_z_size = (size_t)gpr_atm_no_barrier_load(&arena->size_so_far);
next_z = gpr_zalloc(sizeof(zone) + next_z_size);
next_z->size_begin = z->size_end;
next_z->size_end = z->size_end + next_z_size;