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

Issue 931303002: base: Fix DiscardableSharedMemory locking problem. (Closed)

Created:
5 years, 10 months ago by reveman
Modified:
5 years, 10 months ago
CC:
chromium-reviews, erikwright+watch_chromium.org, 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: Fix DiscardableSharedMemory locking problem. Null last_known_usage should not cause DiscardableSharedMemory::Lock to fail when some pages are already locked. TEST=base_unittests --gtest_filter=DiscardableSharedMemoryTest.LockAndUnlockRange BUG=429415 Committed: https://crrev.com/5a854d30eb6cae7ffa6a725d5257f027c153b7c0 Cr-Commit-Position: refs/heads/master@{#316706}

Patch Set 1 #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+26 lines, -16 lines) Patch
M base/memory/discardable_shared_memory.cc View 3 chunks +8 lines, -8 lines 0 comments Download
M base/memory/discardable_shared_memory_unittest.cc View 2 chunks +18 lines, -8 lines 2 comments Download

Messages

Total messages: 12 (3 generated)
reveman
5 years, 10 months ago (2015-02-17 21:20:13 UTC) #2
Avi (use Gerrit)
LGTM
5 years, 10 months ago (2015-02-17 21:21:40 UTC) #3
reveman
+danakj for base/
5 years, 10 months ago (2015-02-17 21:23:15 UTC) #5
danakj
https://codereview.chromium.org/931303002/diff/1/base/memory/discardable_shared_memory_unittest.cc File base/memory/discardable_shared_memory_unittest.cc (left): https://codereview.chromium.org/931303002/diff/1/base/memory/discardable_shared_memory_unittest.cc#oldcode238 base/memory/discardable_shared_memory_unittest.cc:238: EXPECT_EQ(DiscardableSharedMemory::FAILED, lock_rv); Maybe change this to what memory1.Lock should ...
5 years, 10 months ago (2015-02-17 21:42:57 UTC) #6
reveman
https://codereview.chromium.org/931303002/diff/1/base/memory/discardable_shared_memory_unittest.cc File base/memory/discardable_shared_memory_unittest.cc (left): https://codereview.chromium.org/931303002/diff/1/base/memory/discardable_shared_memory_unittest.cc#oldcode238 base/memory/discardable_shared_memory_unittest.cc:238: EXPECT_EQ(DiscardableSharedMemory::FAILED, lock_rv); On 2015/02/17 at 21:42:57, danakj wrote: > ...
5 years, 10 months ago (2015-02-17 22:09:43 UTC) #7
danakj
OK Thanks LGTM
5 years, 10 months ago (2015-02-17 22:41:59 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/931303002/1
5 years, 10 months ago (2015-02-17 22:48:28 UTC) #10
commit-bot: I haz the power
Committed patchset #1 (id:1)
5 years, 10 months ago (2015-02-18 00:06:14 UTC) #11
commit-bot: I haz the power
5 years, 10 months ago (2015-02-18 00:07:36 UTC) #12
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/5a854d30eb6cae7ffa6a725d5257f027c153b7c0
Cr-Commit-Position: refs/heads/master@{#316706}

Powered by Google App Engine
This is Rietveld 408576698