Use QuicCircularDeque instead of QuicQueue.

QuicQueue is std::queue which is backed by std::deque in internal code.  It is
base::queue which a typedef for std::queue backed by base::circular_deque in
Chromium.

This changes the internal implementation from a container that has iterator
stability from one that does not (elements may move when a new one is added).
It is safe to do so because (1) by code inspection I established that nothing is
done with these two containers that would rely on iterator stability (like
taking address of front() then pushing a new element), and (2) this has already
been the case in Chromium for a while and there are no reported crashes or MSAN
failures.

My motivation is to remove as many things from QUICHE platform as possible.
Also note that QuicCircularDeque typically uses less memory than std::deque,
especially for small containers.

PiperOrigin-RevId: 366309029
Change-Id: I0f8f8185feee071b1043b7a60e6456444a281fab
3 files changed
tree: c3c4e2377d8ab8e886a7f755e42fae79a2c73b7b
  1. common/
  2. epoll_server/
  3. http2/
  4. quic/
  5. spdy/
  6. CONTRIBUTING.md
  7. LICENSE
  8. README.md
README.md

QUICHE

QUICHE (QUIC, Http/2, Etc) is Google‘s implementation of QUIC and related protocols. It powers Chromium as well as Google’s QUIC servers and some other projects. QUICHE is only supported on little-endian platforms.

Code can be viewed in CodeSearch in Quiche and is imported into Chromium.