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

Unified Diff: Source/platform/heap/Heap.cpp

Issue 853693002: Oilpan: no need to tally marked object size on empty pages. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/heap/Heap.cpp
diff --git a/Source/platform/heap/Heap.cpp b/Source/platform/heap/Heap.cpp
index a25225c2bec962e07edfa8b4c754650f1be0cf4e..24a4bf4d569c3309a189aae0e849d71157e9ad1b 100644
--- a/Source/platform/heap/Heap.cpp
+++ b/Source/platform/heap/Heap.cpp
@@ -1592,7 +1592,8 @@ void HeapPage::sweep(ThreadHeap* heap)
if (startOfGap != payloadEnd())
heap->addToFreeList(startOfGap, payloadEnd() - startOfGap);
- Heap::increaseMarkedObjectSize(markedObjectSize);
+ if (markedObjectSize)
+ Heap::increaseMarkedObjectSize(markedObjectSize);
}
void HeapPage::markUnmarkedObjectsDead()
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698