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

Unified Diff: third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp

Issue 2191633003: Move ResourceClient to Oilpan heap (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@onheap-raw-resource-client
Patch Set: build fix Created 4 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
Index: third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp
diff --git a/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp b/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp
index 9766e241d7248b3f7e9239d87c45176df3c85d47..9b449c347b97a45570c5fdd5c5f113afc134a2b6 100644
--- a/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp
+++ b/third_party/WebKit/Source/core/fetch/ResourceFetcher.cpp
@@ -398,7 +398,7 @@ void ResourceFetcher::updateMemoryCacheStats(Resource* resource, RevalidationPol
// would be dead if MemoryCache holds weak references to Resource).
// Currently we check references to Resource from ResourceClient and
// |m_preloads| only, because they are major sources of references.
- if (resource && !resource->hasClientsOrObservers() && (!m_preloads || !m_preloads->contains(resource))) {
+ if (resource && !resource->isAlive() && (!m_preloads || !m_preloads->contains(resource))) {
DEFINE_RESOURCE_HISTOGRAM("Dead.");
}
}
@@ -486,7 +486,7 @@ Resource* ResourceFetcher::requestResource(FetchRequest& request, const Resource
return nullptr;
}
- if (!resource->hasClientsOrObservers())
+ if (!resource->isAlive())
m_deadStatsRecorder.update(policy);
if (policy != Use)
« no previous file with comments | « third_party/WebKit/Source/core/fetch/ResourceClientWalker.h ('k') | third_party/WebKit/Source/core/fetch/ScriptResource.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698