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

Issue 2652893006: Releases DiskCacheBasedQuicServerInfo::|new_data_| and |pending_write_data_| (Closed)

Created:
3 years, 11 months ago by xunjieli
Modified:
3 years, 11 months ago
Reviewers:
Ryan Hamilton
CC:
chromium-reviews, cbentzel+watch_chromium.org, wtc
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Releases DiskCacheBasedQuicServerInfo::|new_data_| and |pending_write_data_| std::string::clear() doesn't deallocate memory, so the ~8KiB*2 memory taken by |new_data_| and |pending_write_data_| can be around for quite a while (until QuicChromiumClientStream is torn down). This CL deallocate |new_data_| and |pending_write_data_| when they are no longer needed. BUG=684746 Review-Url: https://codereview.chromium.org/2652893006 Cr-Commit-Position: refs/heads/master@{#445918} Committed: https://chromium.googlesource.com/chromium/src/+/811b298ca853197b54a6a2bbeefcccdcb9ee98aa

Patch Set 1 : self review #

Patch Set 2 : use STLClearObject instead #

Unified diffs Side-by-side diffs Delta from patch set Stats (+3 lines, -2 lines) Patch
M net/http/disk_cache_based_quic_server_info.cc View 1 3 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 18 (12 generated)
xunjieli
3 years, 11 months ago (2017-01-24 22:21:36 UTC) #4
xunjieli
Ryan, PTAL. Thanks!
3 years, 11 months ago (2017-01-24 22:47:11 UTC) #7
ramant (doing other things)
On 2017/01/24 22:21:36, xunjieli wrote: Thanks xunjieli@ for fixing this.
3 years, 11 months ago (2017-01-24 22:47:57 UTC) #8
Ryan Hamilton
lgtm Thanks for doing this!
3 years, 11 months ago (2017-01-24 23:07:08 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2652893006/40001
3 years, 11 months ago (2017-01-25 02:00:39 UTC) #15
commit-bot: I haz the power
3 years, 11 months ago (2017-01-25 02:46:01 UTC) #18
Message was sent while issue was closed.
Committed patchset #2 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/811b298ca853197b54a6a2bbeefc...

Powered by Google App Engine
This is Rietveld 408576698