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

Issue 1138543002: Better remove HistoryNodes (Closed)

Created:
5 years, 7 months ago by Nate Chapin
Modified:
5 years, 6 months ago
Reviewers:
Charlie Reis
CC:
chromium-reviews, mkwst+moarreviews-renderer_chromium.org, mlamouri+watch-content_chromium.org, jam, darin-cc_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Better remove HistoryNodes Clean up some technical debt related to removing children. Currently we do an expensive traversal to clear the unique name and frame id maps of stale references to children being removed. Stash some state on HistoryNodes to make it faster and more readable. Committed: https://crrev.com/740b2ff5e2da9041c3d3e80cb612c82e27d15300 Cr-Commit-Position: refs/heads/master@{#332272}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : #

Patch Set 4 : #

Total comments: 10

Patch Set 5 : #

Patch Set 6 : #

Patch Set 7 : #

Patch Set 8 : #

Total comments: 4

Patch Set 9 : Rebase + unique name comment #

Patch Set 10 : Remove frame sequence numbers from serialization #

Unified diffs Side-by-side diffs Delta from patch set Stats (+73 lines, -106 lines) Patch
M content/common/page_state_serialization.h View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -1 line 0 comments Download
M content/common/page_state_serialization.cc View 1 2 3 4 5 6 7 8 9 5 chunks +4 lines, -6 lines 0 comments Download
M content/common/page_state_serialization_unittest.cc View 1 2 3 4 5 6 7 8 9 3 chunks +4 lines, -2 lines 0 comments Download
M content/renderer/history_controller.cc View 1 2 3 4 5 6 7 8 2 chunks +2 lines, -3 lines 0 comments Download
M content/renderer/history_entry.h View 1 2 3 4 5 6 7 8 4 chunks +17 lines, -11 lines 0 comments Download
M content/renderer/history_entry.cc View 1 2 3 4 5 6 7 3 chunks +29 lines, -79 lines 0 comments Download
M content/renderer/history_serialization.cc View 1 2 3 4 5 6 7 8 9 2 chunks +0 lines, -4 lines 0 comments Download
A content/test/data/page_state/serialized_v22.dat View 1 2 3 4 5 6 7 8 9 1 chunk +17 lines, -0 lines 0 comments Download

Messages

Total messages: 17 (2 generated)
Nate Chapin
https://codereview.chromium.org/1138543002/diff/60001/content/renderer/history_entry.h File content/renderer/history_entry.h (right): https://codereview.chromium.org/1138543002/diff/60001/content/renderer/history_entry.h#newcode78 content/renderer/history_entry.h:78: base::WeakPtr<HistoryEntry> entry_; When a HistoryEntry is destroyed, it takes ...
5 years, 7 months ago (2015-05-13 19:15:56 UTC) #2
Charlie Reis
Ooh, fun bug. Can you split the memory leak fix into a separate CL than ...
5 years, 7 months ago (2015-05-13 21:33:37 UTC) #3
Nate Chapin
This is issue is now for the cleanup, not the bug fix. Will upload a ...
5 years, 7 months ago (2015-05-13 23:23:21 UTC) #4
Charlie Reis
Great, thanks. https://codereview.chromium.org/1138543002/diff/60001/content/renderer/history_entry.h File content/renderer/history_entry.h (right): https://codereview.chromium.org/1138543002/diff/60001/content/renderer/history_entry.h#newcode82 content/renderer/history_entry.h:82: std::vector<uint64_t> frame_ids_; On 2015/05/13 23:23:21, Nate Chapin ...
5 years, 7 months ago (2015-05-13 23:40:15 UTC) #5
Nate Chapin
On 2015/05/13 23:40:15, Charlie Reis wrote: > Great, thanks. > > https://codereview.chromium.org/1138543002/diff/60001/content/renderer/history_entry.h > File content/renderer/history_entry.h ...
5 years, 7 months ago (2015-05-15 19:10:47 UTC) #6
Nate Chapin
On 2015/05/15 19:10:47, Nate Chapin wrote: > On 2015/05/13 23:40:15, Charlie Reis wrote: > > ...
5 years, 7 months ago (2015-05-15 23:39:58 UTC) #7
Charlie Reis
On 2015/05/15 23:39:58, Nate Chapin wrote: > On 2015/05/15 19:10:47, Nate Chapin wrote: > > ...
5 years, 7 months ago (2015-05-18 21:45:03 UTC) #8
Charlie Reis
Ok, I've reverted the memory leak CL in https://crrev.com/330435. We can reland it once we ...
5 years, 7 months ago (2015-05-18 22:48:01 UTC) #9
Nate Chapin
https://codereview.chromium.org/1138543002/diff/140001/content/renderer/history_entry.cc File content/renderer/history_entry.cc (left): https://codereview.chromium.org/1138543002/diff/140001/content/renderer/history_entry.cc#oldcode204 content/renderer/history_entry.cc:204: frames_to_items_[GetFrameMap()[frame->GetRoutingID()]]) On 2015/05/18 22:48:00, Charlie Reis wrote: > Won't ...
5 years, 6 months ago (2015-05-28 21:31:50 UTC) #10
Charlie Reis
Ok, so this handles main frames as a special case, and relies exclusively on the ...
5 years, 6 months ago (2015-06-01 18:52:13 UTC) #11
Nate Chapin
On 2015/06/01 18:52:13, Charlie Reis wrote: > Ok, so this handles main frames as a ...
5 years, 6 months ago (2015-06-01 18:57:01 UTC) #12
Charlie Reis
On 2015/06/01 18:57:01, Nate Chapin wrote: > On 2015/06/01 18:52:13, Charlie Reis wrote: > > ...
5 years, 6 months ago (2015-06-01 19:19:00 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1138543002/180001
5 years, 6 months ago (2015-06-01 19:28:04 UTC) #15
commit-bot: I haz the power
Committed patchset #10 (id:180001)
5 years, 6 months ago (2015-06-02 00:46:17 UTC) #16
commit-bot: I haz the power
5 years, 6 months ago (2015-06-02 00:46:58 UTC) #17
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/740b2ff5e2da9041c3d3e80cb612c82e27d15300
Cr-Commit-Position: refs/heads/master@{#332272}

Powered by Google App Engine
This is Rietveld 408576698