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

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

Issue 2871123005: Fix compilation of heap compaction debug diagnostics code. (Closed)
Patch Set: revert debug settings back to disabled Created 3 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
« no previous file with comments | « third_party/WebKit/Source/platform/heap/HeapCompact.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/heap/HeapPage.cpp
diff --git a/third_party/WebKit/Source/platform/heap/HeapPage.cpp b/third_party/WebKit/Source/platform/heap/HeapPage.cpp
index e61b69a6e3c3f177db9afc34af8beeb4c0813681..bb31d2de2c9246bb9e3e39373c0d0a2087395b8d 100644
--- a/third_party/WebKit/Source/platform/heap/HeapPage.cpp
+++ b/third_party/WebKit/Source/platform/heap/HeapPage.cpp
@@ -532,9 +532,10 @@ void NormalPageArena::SweepAndCompact() {
while (available_pages) {
size_t page_size = available_pages->size();
#if DEBUG_HEAP_COMPACTION
- if (!freedPageCount)
+ if (!freed_page_count)
LOG_HEAP_COMPACTION("Releasing:");
- LOG_HEAP_COMPACTION(" [%p, %p]", availablePages, availablePages + pageSize);
+ LOG_HEAP_COMPACTION(" [%p, %p]", available_pages,
+ available_pages + page_size);
#endif
freed_size += page_size;
freed_page_count++;
@@ -1189,16 +1190,16 @@ size_t FreeList::FreeListSize() const {
}
}
#if DEBUG_HEAP_FREELIST
- if (freeSize) {
- LOG_HEAP_FREELIST_VERBOSE("FreeList(%p): %zu\n", this, freeSize);
- for (unsigned i = 0; i < blinkPageSizeLog2; ++i) {
- FreeListEntry* entry = m_freeLists[i];
+ if (free_size) {
+ LOG_HEAP_FREELIST_VERBOSE("FreeList(%p): %zu\n", this, free_size);
+ for (unsigned i = 0; i < kBlinkPageSizeLog2; ++i) {
+ FreeListEntry* entry = free_lists_[i];
size_t bucket = 0;
size_t count = 0;
while (entry) {
bucket += entry->size();
count++;
- entry = entry->next();
+ entry = entry->Next();
}
if (bucket) {
LOG_HEAP_FREELIST_VERBOSE("[%d, %d]: %zu (%zu)\n", 0x1 << i,
« no previous file with comments | « third_party/WebKit/Source/platform/heap/HeapCompact.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698