Mark a variable const for self-documentation

pull/24875/head
Vijay Pai 4 years ago committed by GitHub
parent d6298ed3dc
commit 33d7150992
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/core/lib/gprpp/arena.h

@ -105,7 +105,7 @@ class Arena {
// Keep track of the total used size. We use this in our call sizing // Keep track of the total used size. We use this in our call sizing
// hysteresis. // hysteresis.
Atomic<size_t> total_used_; Atomic<size_t> total_used_;
size_t initial_zone_size_; const size_t initial_zone_size_;
gpr_spinlock arena_growth_spinlock_ = GPR_SPINLOCK_STATIC_INITIALIZER; gpr_spinlock arena_growth_spinlock_ = GPR_SPINLOCK_STATIC_INITIALIZER;
// If the initial arena allocation wasn't enough, we allocate additional zones // If the initial arena allocation wasn't enough, we allocate additional zones
// in a reverse linked list. Each additional zone consists of (1) a pointer to // in a reverse linked list. Each additional zone consists of (1) a pointer to

Loading…
Cancel
Save