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

Issue 1377483003: Trim IPC ChannelReader's buffer. (Closed)

Created:
5 years, 2 months ago by Dmitry Skiba
Modified:
5 years, 1 month ago
Reviewers:
jam, no sievers, Maria
CC:
chromium-reviews, nasko+codewatch_chromium.org, creis+watch_chromium.org, darin-cc_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@reserve-buffer
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Trim IPC ChannelReader's buffer after processing large messages. Most IPC messages are small, but there are few ones that can be quite large. With this change ChannelReader trims its input buffer after processing large messages. BUG=529940 Committed: https://crrev.com/06a2e65a4f3610ec17dbc5988c0b16a95825240a Cr-Commit-Position: refs/heads/master@{#357708}

Patch Set 1 #

Patch Set 2 : Tests #

Patch Set 3 : Attempt to fix linkage errors #

Patch Set 4 : Rebased #

Patch Set 5 : Rebase to reverted UMA branch (1417583006) #

Patch Set 6 : Trim buffers for all IPC channels #

Patch Set 7 : Rebased #

Patch Set 8 : Fix for COW std::strings #

Patch Set 9 : Fix tests for USE_ATTACHMENT_BROKER case #

Patch Set 10 : Fix USE_ATTACHMENT_BROKER && defined(OS_MACOSX) && !defined(OS_IOS) case #

Unified diffs Side-by-side diffs Delta from patch set Stats (+218 lines, -5 lines) Patch
M ipc/ipc_channel.h View 1 2 3 4 5 1 chunk +5 lines, -0 lines 0 comments Download
M ipc/ipc_channel_reader.h View 1 2 3 4 5 2 chunks +6 lines, -0 lines 0 comments Download
M ipc/ipc_channel_reader.cc View 1 2 3 4 5 6 7 3 chunks +29 lines, -4 lines 0 comments Download
M ipc/ipc_channel_reader_unittest.cc View 1 2 3 4 5 6 7 8 9 5 chunks +178 lines, -1 line 0 comments Download

Messages

Total messages: 25 (9 generated)
Dmitry Skiba
Tests are coming, please check the approach.
5 years, 2 months ago (2015-09-28 18:53:17 UTC) #2
jam
it seems this change is good on its own (i.e. if someone sends a very ...
5 years, 2 months ago (2015-09-28 20:27:42 UTC) #3
Maria
On 2015/09/28 20:27:42, jam wrote: > it seems this change is good on its own ...
5 years, 2 months ago (2015-09-28 21:05:40 UTC) #4
no sievers
I also think handling this generally would be better, because - why not have everyone ...
5 years, 2 months ago (2015-09-28 22:54:44 UTC) #5
Dmitry Skiba
Well, this change trades some performance (since we are trimming and then potentially resizing again) ...
5 years, 2 months ago (2015-09-29 17:48:40 UTC) #6
Dmitry Skiba
After talking to Maria about this we decided to start implementing UMA histogram for message ...
5 years, 2 months ago (2015-09-29 18:30:09 UTC) #7
jam
On 2015/09/29 18:30:09, Dmitry Skiba wrote: > After talking to Maria about this we decided ...
5 years, 2 months ago (2015-09-29 19:34:37 UTC) #8
Dmitry Skiba
Guys, please review.
5 years, 1 month ago (2015-10-28 21:19:28 UTC) #10
jam
lgtm
5 years, 1 month ago (2015-10-29 21:30:57 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1377483003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1377483003/100001
5 years, 1 month ago (2015-10-30 01:37:39 UTC) #13
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: ios_dbg_simulator_ninja on tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator_ninja/builds/88007)
5 years, 1 month ago (2015-10-30 01:56:13 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1377483003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1377483003/140001
5 years, 1 month ago (2015-10-30 20:50:28 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: win_chromium_rel_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_chromium_rel_ng/builds/128482)
5 years, 1 month ago (2015-10-30 21:29:42 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1377483003/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1377483003/180001
5 years, 1 month ago (2015-11-04 00:14:47 UTC) #23
commit-bot: I haz the power
Committed patchset #10 (id:180001)
5 years, 1 month ago (2015-11-04 01:25:06 UTC) #24
commit-bot: I haz the power
5 years, 1 month ago (2015-11-04 01:26:39 UTC) #25
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/06a2e65a4f3610ec17dbc5988c0b16a95825240a
Cr-Commit-Position: refs/heads/master@{#357708}

Powered by Google App Engine
This is Rietveld 408576698