Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(851)

Unified Diff: net/quic/quic_protocol.cc

Issue 1729583003: Deprecate FLAGS_use_stream_frame_freelist. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « net/quic/quic_flags.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/quic/quic_protocol.cc
diff --git a/net/quic/quic_protocol.cc b/net/quic/quic_protocol.cc
index 192008e1967867b1b73aaf30b2ce25918cf757e3..acdbe14616f5edf5df30d2d31e2dc17ed1ec8319 100644
--- a/net/quic/quic_protocol.cc
+++ b/net/quic/quic_protocol.cc
@@ -108,17 +108,13 @@ QuicBufferAllocator::~QuicBufferAllocator() = default;
void StreamBufferDeleter::operator()(char* buffer) const {
if (allocator_ != nullptr && buffer != nullptr) {
allocator_->Delete(buffer);
- if (!FLAGS_use_stream_frame_freelist) {
- allocator_->MarkAllocatorIdle();
- }
}
}
UniqueStreamBuffer NewStreamBuffer(QuicBufferAllocator* allocator,
size_t size) {
- return UniqueStreamBuffer(
- allocator->New(size, FLAGS_use_stream_frame_freelist),
- StreamBufferDeleter(allocator));
+ return UniqueStreamBuffer(allocator->New(size),
+ StreamBufferDeleter(allocator));
}
QuicStreamFrame::QuicStreamFrame()
« no previous file with comments | « net/quic/quic_flags.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698