|
Lines 1820-1832
static TCMalloc_Central_FreeListPadded central_cache[kNumClasses];
a/JavaScriptCore/wtf/FastMalloc.cpp_sec1
|
| 1820 |
|
1820 |
|
| 1821 |
// Page-level allocator |
1821 |
// Page-level allocator |
| 1822 |
static SpinLock pageheap_lock = SPINLOCK_INITIALIZER; |
1822 |
static SpinLock pageheap_lock = SPINLOCK_INITIALIZER; |
| 1823 |
static void* pageheap_memory[(sizeof(TCMalloc_PageHeap) + sizeof(void*) - 1) / sizeof(void*)]; |
1823 |
static uint64_t pageheap_memory[(sizeof(TCMalloc_PageHeap) + sizeof(uint64_t) - 1) / sizeof(uint64_t)]; |
| 1824 |
static bool phinited = false; |
1824 |
static bool phinited = false; |
| 1825 |
|
1825 |
|
| 1826 |
// Avoid extra level of indirection by making "pageheap" be just an alias |
1826 |
// Avoid extra level of indirection by making "pageheap" be just an alias |
| 1827 |
// of pageheap_memory. |
1827 |
// of pageheap_memory. |
| 1828 |
typedef union { |
1828 |
typedef union { |
| 1829 |
void* m_memory; |
1829 |
uint64_t* m_memory; |
| 1830 |
TCMalloc_PageHeap* m_pageHeap; |
1830 |
TCMalloc_PageHeap* m_pageHeap; |
| 1831 |
} PageHeapUnion; |
1831 |
} PageHeapUnion; |
| 1832 |
|
1832 |
|