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

Unified Diff: third_party/WebKit/Source/platform/heap/PagePool.h

Issue 2684633004: Remove orphaned pages from Oilpan (Closed)
Patch Set: temp 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/PagePool.h
diff --git a/third_party/WebKit/Source/platform/heap/PagePool.h b/third_party/WebKit/Source/platform/heap/PagePool.h
index 0d6515ce133c8d689d1a15bbda9146e59866085d..ae4976acb8826cee002bac2a619ed05fdaca266e 100644
--- a/third_party/WebKit/Source/platform/heap/PagePool.h
+++ b/third_party/WebKit/Source/platform/heap/PagePool.h
@@ -11,7 +11,6 @@
namespace blink {
-class BasePage;
class PageMemory;
template <typename DataType>
@@ -55,30 +54,6 @@ class FreePagePool : public PagePool<PageMemory> {
Mutex m_mutex[BlinkGC::NumberOfArenas];
};
-class OrphanedPagePool : public PagePool<BasePage> {
- public:
- // The orphaned zap value must be zero in the lowest bits to allow for
- // using the mark bit when tracing.
- static const uint8_t orphanedZapValue = 0xdc;
-
- ~OrphanedPagePool();
- void addOrphanedPage(int, BasePage*);
- void decommitOrphanedPages();
-#if DCHECK_IS_ON()
- bool contains(void*);
-#endif
-
- // For orphaned pages, we need to memset with ASan disabled, because
- // the orphaned pages can still contain poisoned memory or annotated
- // container but we want to forcibly clear the orphaned pages without
- // causing ASan errors. asanDisabledMemset must not be used for
- // non-orphaned pages.
- static void asanDisabledMemset(Address, char, size_t);
-
- private:
- void clearMemory(PageMemory*);
-};
-
} // namespace blink
#endif
« no previous file with comments | « third_party/WebKit/Source/platform/heap/HeapPage.cpp ('k') | third_party/WebKit/Source/platform/heap/PagePool.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698