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

Issue 2815563002: Avoid cross thread malloc / free pair of IOBuffer on the simple cache (Closed)

Created:
3 years, 8 months ago by tzik
Modified:
3 years, 8 months ago
CC:
chromium-reviews, cbentzel+watch_chromium.org, gavinp+disk_chromium.org, net-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Avoid cross thread malloc/free pair of IOBuffer on the simple cache This CL removes a cross thread malloc/free pair from simple disk cache backend. After a PostTaskAndReply change in http://crrev.com/e5de8d551e80115b, it destroys |task| part of the given tasks on the target thread, and that introduced a number of cross thread malloc/free pairs around net::IOBuffer. The cross thread malloc/free pair increased the apparent size of memory usage on some Android perf bots by 2~3%, that is likely due to thread specific free list caches. BUG=708644 Review-Url: https://codereview.chromium.org/2815563002 Cr-Original-Commit-Position: refs/heads/master@{#464338} Committed: https://chromium.googlesource.com/chromium/src/+/1714b61635cc8207647b1a9857e8042fbb833025 Review-Url: https://codereview.chromium.org/2815563002 Cr-Commit-Position: refs/heads/master@{#464673} Committed: https://chromium.googlesource.com/chromium/src/+/248782b9cda664a1ea6d347dd508354d23160a5a

Patch Set 1 #

Total comments: 2

Patch Set 2 : +comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -9 lines) Patch
M net/disk_cache/simple/simple_entry_impl.h View 1 1 chunk +5 lines, -1 line 0 comments Download
M net/disk_cache/simple/simple_entry_impl.cc View 1 2 chunks +10 lines, -8 lines 0 comments Download

Messages

Total messages: 24 (14 generated)
tzik
jkarlin: PTAL to the CL itself. pmeenan: FYI. primiano: I think the perf regression alert ...
3 years, 8 months ago (2017-04-11 04:27:49 UTC) #4
jkarlin
On 2017/04/11 04:27:49, tzik wrote: > jkarlin: PTAL to the CL itself. > pmeenan: FYI. ...
3 years, 8 months ago (2017-04-11 11:24:28 UTC) #8
jkarlin
https://codereview.chromium.org/2815563002/diff/1/net/disk_cache/simple/simple_entry_impl.h File net/disk_cache/simple/simple_entry_impl.h (right): https://codereview.chromium.org/2815563002/diff/1/net/disk_cache/simple/simple_entry_impl.h#newcode255 net/disk_cache/simple/simple_entry_impl.h:255: // Called after an asynchronous write completes. Can you ...
3 years, 8 months ago (2017-04-11 11:24:39 UTC) #9
Primiano Tucci (use gerrit)
On 2017/04/11 04:27:49, tzik wrote: > jkarlin: PTAL to the CL itself. > pmeenan: FYI. ...
3 years, 8 months ago (2017-04-11 15:09:46 UTC) #10
tzik
https://codereview.chromium.org/2815563002/diff/1/net/disk_cache/simple/simple_entry_impl.h File net/disk_cache/simple/simple_entry_impl.h (right): https://codereview.chromium.org/2815563002/diff/1/net/disk_cache/simple/simple_entry_impl.h#newcode255 net/disk_cache/simple/simple_entry_impl.h:255: // Called after an asynchronous write completes. On 2017/04/11 ...
3 years, 8 months ago (2017-04-13 07:11:17 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/2815563002/20001
3 years, 8 months ago (2017-04-13 07:11:50 UTC) #14
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/chromium/src/+/1714b61635cc8207647b1a9857e8042fbb833025
3 years, 8 months ago (2017-04-13 08:13:06 UTC) #17
tzik
A revert of this CL (patchset #2 id:20001) has been created in https://codereview.chromium.org/2814743011/ by tzik@chromium.org. ...
3 years, 8 months ago (2017-04-13 21:29:29 UTC) #18
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/2815563002/20001
3 years, 8 months ago (2017-04-14 03:58:37 UTC) #21
commit-bot: I haz the power
3 years, 8 months ago (2017-04-14 04:05:19 UTC) #24
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/248782b9cda664a1ea6d347dd508...

Powered by Google App Engine
This is Rietveld 408576698