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

Unified Diff: third_party/WebKit/Source/platform/heap/ThreadState.cpp

Issue 2715713005: Verify that a new heap page isn't also marked as being off heap. (Closed)
Patch Set: switch to CHECK() Created 3 years, 10 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 | « third_party/WebKit/Source/platform/heap/ThreadState.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/heap/ThreadState.cpp
diff --git a/third_party/WebKit/Source/platform/heap/ThreadState.cpp b/third_party/WebKit/Source/platform/heap/ThreadState.cpp
index 9b8d80983accd0a8337e0385f4868bad1b82df09..09617fb3dcafdd2e771d0fc0ca975319330c58e5 100644
--- a/third_party/WebKit/Source/platform/heap/ThreadState.cpp
+++ b/third_party/WebKit/Source/platform/heap/ThreadState.cpp
@@ -1086,6 +1086,15 @@ BasePage* ThreadState::findPageFromAddress(Address address) {
}
#endif
+bool ThreadState::isAddressInHeapDoesNotContainCache(Address address) {
+ // If the cache has been marked as invalidated, it's cleared prior
+ // to performing the next GC. Hence, consider the cache as being
+ // effectively empty.
+ if (m_shouldFlushHeapDoesNotContainCache)
+ return false;
+ return heap().m_heapDoesNotContainCache->lookup(address);
+}
+
size_t ThreadState::objectPayloadSizeForTesting() {
size_t objectPayloadSize = 0;
for (int i = 0; i < BlinkGC::NumberOfArenas; ++i)
« no previous file with comments | « third_party/WebKit/Source/platform/heap/ThreadState.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698