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

Issue 1703017: When cancelling a pending request, release any outstanding SharedIOBuffer objects (Closed)

Created:
10 years, 8 months ago by Mark Mentovai
Modified:
9 years, 7 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

When cancelling a pending request, release any outstanding SharedIOBuffer objects and their associated shared memory segments. This avoids a shared memory leak and file descriptor leak. BUG=38383 TEST=Using test_chrome_fd_leak from bug 38383 and lsof, the renderer process should not show an fd leak on Mac or Linux. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=46007

Patch Set 1 #

Total comments: 1

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Total comments: 2

Patch Set 5 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -17 lines) Patch
M chrome/common/resource_dispatcher.h View 2 3 4 3 chunks +6 lines, -3 lines 0 comments Download
M chrome/common/resource_dispatcher.cc View 1 2 3 4 4 chunks +18 lines, -14 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Mark Mentovai
Darin, this is a high priority because it blocks M5. Let me know if you ...
10 years, 8 months ago (2010-04-28 22:49:15 UTC) #1
darin (slow to review)
http://codereview.chromium.org/1703017/diff/1/2 File chrome/common/resource_dispatcher.cc (right): http://codereview.chromium.org/1703017/diff/1/2#newcode510 chrome/common/resource_dispatcher.cc:510: MessageQueue& queue = request_info.deferred_message_queue; Should this be something that ...
10 years, 7 months ago (2010-04-29 21:28:13 UTC) #2
Mark Mentovai
Right, RemovePendingRequest isn’t being called. Doing this in ~PendingRequestInfo was ineffective. In the version that ...
10 years, 7 months ago (2010-04-29 22:00:10 UTC) #3
Mark Mentovai
I looked more closely and realized that because RemovePendingRequest wasn’t being called, PendingRequestInfo objects were ...
10 years, 7 months ago (2010-04-29 22:35:48 UTC) #4
darin (slow to review)
LGTM, except... http://codereview.chromium.org/1703017/diff/10001/11001 File chrome/common/resource_dispatcher.cc (right): http://codereview.chromium.org/1703017/diff/10001/11001#newcode497 chrome/common/resource_dispatcher.cc:497: DLOG(ERROR) << "unknown request"; Hmm... this DLOG ...
10 years, 7 months ago (2010-04-29 22:56:28 UTC) #5
Mark Mentovai
I checked this in with both of the suggested changes. That leaves us in a ...
10 years, 7 months ago (2010-04-29 23:27:09 UTC) #6
darin (slow to review)
10 years, 7 months ago (2010-04-30 03:46:31 UTC) #7
Agreed!

On Thu, Apr 29, 2010 at 4:27 PM, <mark@chromium.org> wrote:

> I checked this in with both of the suggested changes. That leaves us in a
> situation where RemovePendingRequest and CancelPendingRequest are almost
> identical, except that one DLOGs and returns a boolean. Perhaps it’s time
> to
> fully unify them.
>
>
> http://codereview.chromium.org/1703017/show
>

Powered by Google App Engine
This is Rietveld 408576698