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

Issue 136723005: Align ashmem region sizes to page size after ashmem creation failed. (Closed)

Created:
6 years, 11 months ago by Philippe
Modified:
6 years, 11 months ago
CC:
chromium-reviews, erikwright+watch_chromium.org, gavinp+memory_chromium.org
Visibility:
Public.

Description

Align ashmem region sizes to page size after ashmem creation failed. When ashmem creation failed the new size (twice smaller) used to retry wasn't page-aligned. This also moves the page alignment function to the allocator's anonymous namespace since it's now an implementation detail (since the allocator is always used). BUG=331832 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=245201

Patch Set 1 #

Patch Set 2 : Add unit test #

Total comments: 10

Patch Set 3 : Address William's comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -25 lines) Patch
M base/memory/discardable_memory_allocator_android.h View 1 2 1 chunk +7 lines, -2 lines 0 comments Download
M base/memory/discardable_memory_allocator_android.cc View 1 2 6 chunks +23 lines, -4 lines 0 comments Download
M base/memory/discardable_memory_allocator_android_unittest.cc View 1 2 3 chunks +17 lines, -5 lines 0 comments Download
M base/memory/discardable_memory_android.h View 1 chunk +0 lines, -3 lines 0 comments Download
M base/memory/discardable_memory_android.cc View 2 chunks +1 line, -11 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Philippe
https://codereview.chromium.org/136723005/diff/30001/base/memory/discardable_memory_allocator_android.cc File base/memory/discardable_memory_allocator_android.cc (right): https://codereview.chromium.org/136723005/diff/30001/base/memory/discardable_memory_allocator_android.cc#newcode424 base/memory/discardable_memory_allocator_android.cc:424: ashmem_region_size_ = region_size; FYI, I added this logic back ...
6 years, 11 months ago (2014-01-14 15:51:26 UTC) #1
willchan no longer on Chromium
https://codereview.chromium.org/136723005/diff/30001/base/memory/discardable_memory_allocator_android.cc File base/memory/discardable_memory_allocator_android.cc (right): https://codereview.chromium.org/136723005/diff/30001/base/memory/discardable_memory_allocator_android.cc#newcode424 base/memory/discardable_memory_allocator_android.cc:424: ashmem_region_size_ = region_size; On 2014/01/14 15:51:26, Philippe wrote: > ...
6 years, 11 months ago (2014-01-15 00:37:48 UTC) #2
Philippe
Thanks William! https://codereview.chromium.org/136723005/diff/30001/base/memory/discardable_memory_allocator_android.cc File base/memory/discardable_memory_allocator_android.cc (right): https://codereview.chromium.org/136723005/diff/30001/base/memory/discardable_memory_allocator_android.cc#newcode424 base/memory/discardable_memory_allocator_android.cc:424: ashmem_region_size_ = region_size; On 2014/01/15 00:37:49, willchan ...
6 years, 11 months ago (2014-01-15 09:18:11 UTC) #3
willchan no longer on Chromium
LGTM https://codereview.chromium.org/136723005/diff/30001/base/memory/discardable_memory_allocator_android.cc File base/memory/discardable_memory_allocator_android.cc (right): https://codereview.chromium.org/136723005/diff/30001/base/memory/discardable_memory_allocator_android.cc#newcode424 base/memory/discardable_memory_allocator_android.cc:424: ashmem_region_size_ = region_size; On 2014/01/15 09:18:12, Philippe wrote: ...
6 years, 11 months ago (2014-01-16 01:52:36 UTC) #4
Philippe
Thanks William! https://codereview.chromium.org/136723005/diff/30001/base/memory/discardable_memory_allocator_android.h File base/memory/discardable_memory_allocator_android.h (right): https://codereview.chromium.org/136723005/diff/30001/base/memory/discardable_memory_allocator_android.h#newcode48 base/memory/discardable_memory_allocator_android.h:48: size_t ashmem_region_size(); On 2014/01/16 01:52:37, willchan wrote: ...
6 years, 11 months ago (2014-01-16 09:24:21 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/pliard@chromium.org/136723005/90001
6 years, 11 months ago (2014-01-16 09:24:37 UTC) #6
commit-bot: I haz the power
6 years, 11 months ago (2014-01-16 15:54:45 UTC) #7
Message was sent while issue was closed.
Change committed as 245201

Powered by Google App Engine
This is Rietveld 408576698