Motivation:
The HTTP2StreamChannel stores two atomic booleans for whether the
channel is active and writable. These are only accessed externally and
access is relatively infrequent. Each atomic requires an allocation,
instead we can just protect each with a single lock.
Modifications:
- Combine the two atomics into a single 'flags' struct protected by a
locked value box
Result:
Fewer allocations