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

Unified Diff: third_party/WebKit/Source/platform/heap/HeapPage.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/HeapPage.h
diff --git a/third_party/WebKit/Source/platform/heap/HeapPage.h b/third_party/WebKit/Source/platform/heap/HeapPage.h
index 6340c54e97bbb71afabbf4bedfc46992f5db8e86..7d007aa47307ee0ca1f3f9f25e7dbe9ea1757c91 100644
--- a/third_party/WebKit/Source/platform/heap/HeapPage.h
+++ b/third_party/WebKit/Source/platform/heap/HeapPage.h
@@ -413,7 +413,6 @@ class BasePage {
Address,
MarkedPointerCallbackForTesting) = 0;
#endif
- virtual void markOrphaned();
class HeapSnapshotInfo {
STACK_ALLOCATED();
@@ -435,7 +434,6 @@ class BasePage {
Address getAddress() { return reinterpret_cast<Address>(this); }
PageMemory* storage() const { return m_storage; }
BaseArena* arena() const { return m_arena; }
- bool orphaned() { return !m_arena; }
bool terminating() { return m_terminating; }
void setTerminating() { m_terminating = true; }
@@ -498,7 +496,6 @@ class NormalPage final : public BasePage {
Address,
MarkedPointerCallbackForTesting) override;
#endif
- void markOrphaned() override;
void takeSnapshot(base::trace_event::MemoryAllocatorDump*,
ThreadState::GCSnapshotInfo&,
@@ -580,7 +577,6 @@ class LargeObjectPage final : public BasePage {
Address,
MarkedPointerCallbackForTesting) override;
#endif
- void markOrphaned() override;
void takeSnapshot(base::trace_event::MemoryAllocatorDump*,
ThreadState::GCSnapshotInfo&,
@@ -717,7 +713,7 @@ class PLATFORM_EXPORT BaseArena {
public:
BaseArena(ThreadState*, int);
virtual ~BaseArena();
- void cleanupPages();
+ void removeAllPages();
void takeSnapshot(const String& dumpBaseName, ThreadState::GCSnapshotInfo&);
#if DCHECK_IS_ON()
@@ -867,7 +863,7 @@ NO_SANITIZE_ADDRESS inline size_t HeapObjectHeader::size() const {
#if DCHECK_IS_ON()
NO_SANITIZE_ADDRESS inline bool HeapObjectHeader::checkHeader() const {
- return !pageFromObject(this)->orphaned() && m_magic == magic;
+ return m_magic == magic;
}
#endif
« no previous file with comments | « third_party/WebKit/Source/platform/heap/Heap.cpp ('k') | third_party/WebKit/Source/platform/heap/HeapPage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698