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

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: 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
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..49262d07e9830a92fb1508ea15de3cd6252620a6 100644
--- a/third_party/WebKit/Source/platform/heap/ThreadState.cpp
+++ b/third_party/WebKit/Source/platform/heap/ThreadState.cpp
@@ -1084,6 +1084,15 @@ BasePage* ThreadState::findPageFromAddress(Address address) {
}
return nullptr;
}
+
+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);
+}
#endif
size_t ThreadState::objectPayloadSizeForTesting() {

Powered by Google App Engine
This is Rietveld 408576698