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

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

Issue 1402103004: Oilpan: Factor out GC-related enum definitions to BlinkGC.h (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 9b4e8b5f5812d3c73b486740d37aba64e92f2681..c33a8e22c4b9f00ea79d66b67f2e7dbc70d08330 100644
--- a/third_party/WebKit/Source/platform/heap/PagePool.h
+++ b/third_party/WebKit/Source/platform/heap/PagePool.h
@@ -18,7 +18,7 @@ class PagePool {
protected:
PagePool()
{
- for (int i = 0; i < ThreadState::NumberOfHeaps; ++i)
+ for (int i = 0; i < BlinkGC::NumberOfHeaps; ++i)
m_pool[i] = nullptr;
}
@@ -33,7 +33,7 @@ protected:
PoolEntry* next;
};
- PoolEntry* m_pool[ThreadState::NumberOfHeaps];
+ PoolEntry* m_pool[BlinkGC::NumberOfHeaps];
};
// Once pages have been used for one type of thread heap they will never be
@@ -51,7 +51,7 @@ public:
PageMemory* takeFreePage(int);
private:
- Mutex m_mutex[ThreadState::NumberOfHeaps];
+ Mutex m_mutex[BlinkGC::NumberOfHeaps];
};
class OrphanedPagePool : public PagePool<BasePage> {
« no previous file with comments | « third_party/WebKit/Source/platform/heap/HeapTest.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