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

Unified Diff: chrome/browser/renderer_host/backing_store_manager.cc

Issue 176037: Fix a DCHECK corner case. Allow (current + new == max) case.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 4 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/renderer_host/backing_store_manager.cc
===================================================================
--- chrome/browser/renderer_host/backing_store_manager.cc (revision 24872)
+++ chrome/browser/renderer_host/backing_store_manager.cc (working copy)
@@ -46,7 +46,6 @@
}
// The maximum about of memory to use for all BackingStoreCache object combined.
-// We use this
static size_t MaxBackingStoreMemory() {
// Compute in terms of the number of large monitor's worth of backing-store.
return MaxNumberOfBackingStores() * kMemoryMultiplier;
@@ -119,7 +118,7 @@
// won't be over-sized.
CreateCacheSpace((current_mem + new_mem) - max_mem);
}
- DCHECK((BackingStoreManager::MemorySize() + new_mem) < max_mem);
+ DCHECK((BackingStoreManager::MemorySize() + new_mem) <= max_mem);
BackingStoreCache* cache;
if (new_mem > kSmallThreshold) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698