|
Line 0
Link Here
|
|
|
1 |
--- src/heap-snapshot-generator.cc.orig 2014-06-03 10:52:11.000000000 +0200 |
| 2 |
+++ src/heap-snapshot-generator.cc 2015-08-20 23:15:47.676226000 +0200 |
| 3 |
@@ -410,8 +410,8 @@ bool HeapObjectsMap::MoveObject(Address |
| 4 |
// object is migrated. |
| 5 |
if (FLAG_heap_profiler_trace_objects) { |
| 6 |
PrintF("Move object from %p to %p old size %6d new size %6d\n", |
| 7 |
- from, |
| 8 |
- to, |
| 9 |
+ reinterpret_cast<void*>(from), |
| 10 |
+ reinterpret_cast<void*>(to), |
| 11 |
entries_.at(from_entry_info_index).size, |
| 12 |
object_size); |
| 13 |
} |
| 14 |
@@ -451,7 +451,7 @@ SnapshotObjectId HeapObjectsMap::FindOrA |
| 15 |
entry_info.accessed = accessed; |
| 16 |
if (FLAG_heap_profiler_trace_objects) { |
| 17 |
PrintF("Update object size : %p with old size %d and new size %d\n", |
| 18 |
- addr, |
| 19 |
+ reinterpret_cast<void*>(addr), |
| 20 |
entry_info.size, |
| 21 |
size); |
| 22 |
} |
| 23 |
@@ -486,9 +486,9 @@ void HeapObjectsMap::UpdateHeapObjectsMa |
| 24 |
FindOrAddEntry(obj->address(), obj->Size()); |
| 25 |
if (FLAG_heap_profiler_trace_objects) { |
| 26 |
PrintF("Update object : %p %6d. Next address is %p\n", |
| 27 |
- obj->address(), |
| 28 |
+ reinterpret_cast<void*>(obj->address()), |
| 29 |
obj->Size(), |
| 30 |
- obj->address() + obj->Size()); |
| 31 |
+ reinterpret_cast<void*>(obj->address() + obj->Size())); |
| 32 |
} |
| 33 |
} |
| 34 |
RemoveDeadEntries(); |
| 35 |
@@ -516,20 +516,20 @@ struct HeapObjectInfo { |
| 36 |
void Print() const { |
| 37 |
if (expected_size == 0) { |
| 38 |
PrintF("Untracked object : %p %6d. Next address is %p\n", |
| 39 |
- obj->address(), |
| 40 |
+ reinterpret_cast<void*>(obj->address()), |
| 41 |
obj->Size(), |
| 42 |
- obj->address() + obj->Size()); |
| 43 |
+ reinterpret_cast<void*>(obj->address() + obj->Size())); |
| 44 |
} else if (obj->Size() != expected_size) { |
| 45 |
PrintF("Wrong size %6d: %p %6d. Next address is %p\n", |
| 46 |
expected_size, |
| 47 |
- obj->address(), |
| 48 |
+ reinterpret_cast<void*>(obj->address()), |
| 49 |
obj->Size(), |
| 50 |
- obj->address() + obj->Size()); |
| 51 |
+ reinterpret_cast<void*>(obj->address() + obj->Size())); |
| 52 |
} else { |
| 53 |
PrintF("Good object : %p %6d. Next address is %p\n", |
| 54 |
- obj->address(), |
| 55 |
+ reinterpret_cast<void*>(obj->address()), |
| 56 |
expected_size, |
| 57 |
- obj->address() + obj->Size()); |
| 58 |
+ reinterpret_cast<void*>(obj->address() + obj->Size())); |
| 59 |
} |
| 60 |
} |
| 61 |
}; |