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

Unified Diff: base/memory/discardable_shared_memory.cc

Issue 842003002: Re-land: base: Fix DiscardableSharedMemory::mapped_size(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add unit test Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | base/memory/discardable_shared_memory_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/memory/discardable_shared_memory.cc
diff --git a/base/memory/discardable_shared_memory.cc b/base/memory/discardable_shared_memory.cc
index eb9e55236218a4af9861753a8af93445aedc6ef4..82bc9831b5f5e14dcb7acabad24a86f4e08e4f8b 100644
--- a/base/memory/discardable_shared_memory.cc
+++ b/base/memory/discardable_shared_memory.cc
@@ -353,6 +353,7 @@ bool DiscardableSharedMemory::IsMemoryResident() const {
void DiscardableSharedMemory::Close() {
shared_memory_.Unmap();
shared_memory_.Close();
+ mapped_size_ = 0;
}
Time DiscardableSharedMemory::Now() const {
« no previous file with comments | « no previous file | base/memory/discardable_shared_memory_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698