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

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

Issue 1212713002: Oilpan: LargeObjectPage::takeSnapshot should not crash (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 6 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 c1dd9d315b3617088f4cc2d3e1f6b4d9a63d656c..0518d9989f9f59d5a5a7a6d303d48f4b717891cd 100644
--- a/Source/platform/heap/Heap.cpp
+++ b/Source/platform/heap/Heap.cpp
@@ -1709,10 +1709,10 @@ void LargeObjectPage::takeSnapshot(String dumpName, size_t pageIndex)
HeapObjectHeader* header = heapObjectHeader();
if (header->isMarked()) {
liveCount = 1;
- liveSize += header->size();
+ liveSize += header->payloadSize();
} else {
deadCount = 1;
- deadSize += header->size();
+ deadSize += header->payloadSize();
}
pageDump->AddScalar("live_count", "objects", liveCount);
« 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