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

Issue 136333002: PartitionAlloc: simplify PartitionPage structure some more. (Closed)

Created:
6 years, 11 months ago by Chris Evans
Modified:
6 years, 11 months ago
Reviewers:
Tom Sepez
CC:
blink-reviews, yurys+blink_chromium.org, loislo+blink_chromium.org, adamk+blink_chromium.org, Inactive, abarth-chromium
Visibility:
Public.

Description

PartitionAlloc: simplify PartitionPage structure some more. Two important simplifications: 1) Remove the foul union. It isn't necessary if we don't try and put pages on the active and free lists at the same time. Instead, we can simply tag free pages as free and mop them up when we next walk the active pages list. 2) Remove the flags field. It's strictly a duplication of information we have available in other fields. And we hate duplication because it will get out of sync and cause bugs. Also, the freed up field can likely be profitably used to avoid having to re-introduce a union later. BUG=332282 Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=165036

Patch Set 1 #

Total comments: 1

Patch Set 2 : Review. #

Patch Set 3 : Rebase. #

Patch Set 4 : Fix bug. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+108 lines, -117 lines) Patch
M Source/wtf/PartitionAlloc.h View 1 2 3 chunks +8 lines, -29 lines 0 comments Download
M Source/wtf/PartitionAlloc.cpp View 1 2 3 16 chunks +65 lines, -61 lines 0 comments Download
M Source/wtf/PartitionAllocTest.cpp View 1 17 chunks +35 lines, -27 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Chris Evans
6 years, 11 months ago (2014-01-13 08:30:05 UTC) #1
Tom Sepez
LGTM with nit. https://codereview.chromium.org/136333002/diff/1/Source/wtf/PartitionAlloc.h File Source/wtf/PartitionAlloc.h (right): https://codereview.chromium.org/136333002/diff/1/Source/wtf/PartitionAlloc.h#newcode227 Source/wtf/PartitionAlloc.h:227: PartitionPage* next; nit: nextPage or some ...
6 years, 11 months ago (2014-01-13 18:15:55 UTC) #2
Chris Evans
On 2014/01/13 18:15:55, Tom Sepez wrote: > LGTM with nit. > > https://codereview.chromium.org/136333002/diff/1/Source/wtf/PartitionAlloc.h > File ...
6 years, 11 months ago (2014-01-13 20:45:00 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cevans@chromium.org/136333002/80001
6 years, 11 months ago (2014-01-13 20:55:56 UTC) #4
commit-bot: I haz the power
Retried try job too often on linux_blink_rel for step(s) blink_platform_unittests, webkit_lint, webkit_python_tests, webkit_tests, webkit_unit_tests, wtf_unittests ...
6 years, 11 months ago (2014-01-13 22:00:40 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cevans@chromium.org/136333002/80001
6 years, 11 months ago (2014-01-13 22:05:17 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cevans@chromium.org/136333002/270001
6 years, 11 months ago (2014-01-13 22:54:40 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/cevans@chromium.org/136333002/360001
6 years, 11 months ago (2014-01-14 05:09:20 UTC) #8
commit-bot: I haz the power
6 years, 11 months ago (2014-01-14 07:58:43 UTC) #9
Message was sent while issue was closed.
Change committed as 165036

Powered by Google App Engine
This is Rietveld 408576698