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

Issue 871043003: base: Improve DiscardableSharedMemory support for ashmem. (Closed)

Created:
5 years, 11 months ago by reveman
Modified:
5 years, 11 months ago
CC:
chromium-reviews, darin-cc_chromium.org, erikwright+watch_chromium.org, jam, gavinp+memory_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

base: Improve DiscardableSharedMemory support for ashmem. Locking can now succeed even when the range of pages has been purged. This avoids unnecessary IPC as it reduces the need to create new DiscardableSharedMemory instances when backed by ashmem. BUG=429416 TEST=base_unittests --gtest_filter=DiscardableSharedMemoryTest* Committed: https://crrev.com/876f863615f341236004e0c3cd47125311e4c2d4 Cr-Commit-Position: refs/heads/master@{#312992}

Patch Set 1 #

Total comments: 6

Patch Set 2 : address review feedback #

Patch Set 3 : add missing return statement #

Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -49 lines) Patch
M base/memory/discardable_memory_shmem_allocator.cc View 1 chunk +5 lines, -1 line 0 comments Download
M base/memory/discardable_shared_memory.h View 1 2 chunks +13 lines, -9 lines 0 comments Download
M base/memory/discardable_shared_memory.cc View 4 chunks +6 lines, -5 lines 0 comments Download
M base/memory/discardable_shared_memory_unittest.cc View 5 chunks +14 lines, -14 lines 0 comments Download
M content/child/child_discardable_shared_memory_manager.cc View 1 2 2 chunks +26 lines, -10 lines 0 comments Download
M content/common/host_discardable_shared_memory_manager_unittest.cc View 4 chunks +10 lines, -10 lines 0 comments Download

Messages

Total messages: 12 (3 generated)
reveman
5 years, 11 months ago (2015-01-23 21:21:29 UTC) #2
Avi (use Gerrit)
lgtm
5 years, 11 months ago (2015-01-23 22:23:19 UTC) #3
reveman
+danakj for base/
5 years, 11 months ago (2015-01-23 23:25:42 UTC) #5
danakj
https://codereview.chromium.org/871043003/diff/1/base/memory/discardable_shared_memory.h File base/memory/discardable_shared_memory.h (right): https://codereview.chromium.org/871043003/diff/1/base/memory/discardable_shared_memory.h#newcode60 base/memory/discardable_shared_memory.h:60: // last known usage timestamp might be out of ...
5 years, 11 months ago (2015-01-24 00:16:06 UTC) #6
reveman
PTAL https://codereview.chromium.org/871043003/diff/1/base/memory/discardable_shared_memory.h File base/memory/discardable_shared_memory.h (right): https://codereview.chromium.org/871043003/diff/1/base/memory/discardable_shared_memory.h#newcode60 base/memory/discardable_shared_memory.h:60: // last known usage timestamp might be out ...
5 years, 11 months ago (2015-01-24 00:27:48 UTC) #7
danakj
LGTM
5 years, 11 months ago (2015-01-24 00:28:30 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/871043003/40001
5 years, 11 months ago (2015-01-24 01:47:03 UTC) #10
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 11 months ago (2015-01-24 02:04:04 UTC) #11
commit-bot: I haz the power
5 years, 11 months ago (2015-01-24 02:05:41 UTC) #12
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/876f863615f341236004e0c3cd47125311e4c2d4
Cr-Commit-Position: refs/heads/master@{#312992}

Powered by Google App Engine
This is Rietveld 408576698