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

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

Issue 2015173003: Address ThreadHeap::willObjectBeLazilySwept() corner case. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebased Created 4 years, 7 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 11b8138ae01492f8c458f3c4e64dc76f20d824bc..6659ddc8c858a1b4174eb86756127ba1ed54a198 100644
--- a/third_party/WebKit/Source/platform/heap/HeapPage.h
+++ b/third_party/WebKit/Source/platform/heap/HeapPage.h
@@ -494,7 +494,6 @@ public:
return sizeof(NormalPage) + paddingSize;
}
-
NormalPageArena* arenaForNormalPage();
private:
@@ -696,6 +695,8 @@ public:
Address allocateLargeObject(size_t allocationSize, size_t gcInfoIndex);
+ bool willObjectBeLazilySwept(BasePage*, void*) const;
+
protected:
BasePage* m_firstPage;
BasePage* m_firstUnsweptPage;
@@ -741,6 +742,9 @@ public:
return header->payloadEnd() == m_currentAllocationPoint;
}
+ bool isLazySweeping() const { return m_isLazySweeping; }
+ void setIsLazySweeping(bool flag) { m_isLazySweeping = flag; }
+
private:
void allocatePage();
Address outOfLineAllocate(size_t allocationSize, size_t gcInfoIndex);
@@ -763,6 +767,8 @@ private:
// The size of promptly freed objects in the heap.
size_t m_promptlyFreedSize;
+
+ bool m_isLazySweeping;
};
class LargeObjectArena final : public BaseArena {

Powered by Google App Engine
This is Rietveld 408576698