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

Issue 180293003: Simplify partitionReallocGeneric() implementation (Closed)

Created:
6 years, 10 months ago by Jens Widell
Modified:
6 years, 9 months ago
Reviewers:
Chris Evans
CC:
blink-reviews, loislo+blink_chromium.org, yurys+blink_chromium.org, abarth-chromium, adamk+blink_chromium.org, Inactive, Mikhail
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

Simplify partitionReallocGeneric() implementation Using the new partitionAllocActualSize() and partitionAllocGetSize() the implementation of partitionReallocGeneric() can be made quite a bit simpler and more high-level. R=cevans@chromium.org BUG= Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=167997

Patch Set 1 #

Total comments: 7

Patch Set 2 : restore TODOs + extended test #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+41 lines, -13 lines) Patch
M Source/wtf/PartitionAlloc.cpp View 1 1 chunk +13 lines, -13 lines 0 comments Download
M Source/wtf/PartitionAllocTest.cpp View 1 1 chunk +28 lines, -0 lines 2 comments Download

Messages

Total messages: 9 (0 generated)
Jens Widell
Just a minor cleanup.
6 years, 10 months ago (2014-02-25 19:50:13 UTC) #1
Chris Evans
I do agree that the overall flow of the function is easier with the new ...
6 years, 10 months ago (2014-02-26 00:22:51 UTC) #2
Jens Widell
https://codereview.chromium.org/180293003/diff/1/Source/wtf/PartitionAlloc.cpp File Source/wtf/PartitionAlloc.cpp (left): https://codereview.chromium.org/180293003/diff/1/Source/wtf/PartitionAlloc.cpp#oldcode778 Source/wtf/PartitionAlloc.cpp:778: // TODO: note that tcmalloc will "ignore" a downsizing ...
6 years, 10 months ago (2014-02-26 05:45:44 UTC) #3
Jens Widell
Patch updated with TODO comments and some addition test coverage.
6 years, 10 months ago (2014-02-26 06:35:25 UTC) #4
Chris Evans
LGTM with note. https://codereview.chromium.org/180293003/diff/20001/Source/wtf/PartitionAllocTest.cpp File Source/wtf/PartitionAllocTest.cpp (right): https://codereview.chromium.org/180293003/diff/20001/Source/wtf/PartitionAllocTest.cpp#newcode690 Source/wtf/PartitionAllocTest.cpp:690: EXPECT_EQ(WTF::kUninitializedByte, static_cast<unsigned char>(charPtr[size - 1])); I ...
6 years, 10 months ago (2014-02-26 20:56:54 UTC) #5
Jens Widell
https://codereview.chromium.org/180293003/diff/20001/Source/wtf/PartitionAllocTest.cpp File Source/wtf/PartitionAllocTest.cpp (right): https://codereview.chromium.org/180293003/diff/20001/Source/wtf/PartitionAllocTest.cpp#newcode690 Source/wtf/PartitionAllocTest.cpp:690: EXPECT_EQ(WTF::kUninitializedByte, static_cast<unsigned char>(charPtr[size - 1])); On 2014/02/26 20:56:55, Chris ...
6 years, 10 months ago (2014-02-27 07:18:12 UTC) #6
Jens Widell
The CQ bit was checked by jl@opera.com
6 years, 10 months ago (2014-02-27 07:18:24 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/jl@opera.com/180293003/20001
6 years, 10 months ago (2014-02-27 07:18:37 UTC) #8
commit-bot: I haz the power
6 years, 9 months ago (2014-02-27 09:27:21 UTC) #9
Message was sent while issue was closed.
Change committed as 167997

Powered by Google App Engine
This is Rietveld 408576698