forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Auto-shrink the buffer in base::circular_deque.
Reallocates the underlying buffer when the wasted elements are equal to or greated than the number of used elements. This will prevent wasting too much memory if many items are added to a deque. Change-Id: I395a45528e78c3b427be2ceb542d7140f06367af Reviewed-on: https://chromium-review.googlesource.com/613678 Commit-Queue: Brett Wilson <brettw@chromium.org> Reviewed-by: Vladimir Levin <vmpstr@chromium.org> Reviewed-by: Dmitry Skiba <dskiba@chromium.org> Cr-Commit-Position: refs/heads/master@{#495232}
- Loading branch information
Brett Wilson
authored and
Commit Bot
committed
Aug 17, 2017
1 parent
0483c56
commit 9550a9a
Showing
3 changed files
with
121 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters