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

Issue 604048: Correctly recognize emptiness of IDMap. (Closed)

Created:
10 years, 10 months ago by Paweł Hajdan Jr.
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Correctly recognize emptiness of IDMap. This prevents a leak of RenderProcessHost, and possibly other bad bugs. TEST=Added to base_unittests; also existing browser and unit tests. BUG=35571 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=39084

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+16 lines, -5 lines) Patch
M base/id_map.h View 2 chunks +2 lines, -2 lines 0 comments Download
M base/id_map_unittest.cc View 1 chunk +14 lines, -3 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Paweł Hajdan Jr.
Please also advise whether this should land in 249 and/or 307 branch.
10 years, 10 months ago (2010-02-13 18:22:25 UTC) #1
brettw
LGTM. Is IsEmpty called during normal running? (I'm at home so can't easily check). If ...
10 years, 10 months ago (2010-02-14 18:13:03 UTC) #2
Paweł Hajdan Jr.
On 2010/02/14 18:13:03, brettw wrote: > LGTM. Is IsEmpty called during normal running? (I'm at ...
10 years, 10 months ago (2010-02-14 18:33:25 UTC) #3
brettw
10 years, 10 months ago (2010-02-15 04:14:54 UTC) #4
It just wasn't clear to me if this is just a leak in a test or happens
when browsing. It looks low risk enough in any case that we should ask
to land on the branch if that's still possible.

Brett

On Sun, Feb 14, 2010 at 10:33 AM,  <phajdan.jr@chromium.org> wrote:
> On 2010/02/14 18:13:03, brettw wrote:
>>
>> LGTM. Is IsEmpty called during normal running? (I'm at home so can't
>> easily check). If it is used for something useful, I'd say land it on
>> the branch. If it's just this test, trunk should be fine.
>
> See the bug for more info. This was causing a RenderProcessHost leak, and
> possibly other problems (I remember IDMap iterators being used in few other
> places).
>
> http://codereview.chromium.org/604048
>

Powered by Google App Engine
This is Rietveld 408576698