@@ -587,7 +587,7 @@ static void NewHook(const void* ptr, size_t size) {
587587 }
588588 }
589589 }
590- RAW_VLOG (17 , " Alloc Recorded: %p of %" PRIuS" " , ptr, size);
590+ RAW_VLOG (17 , " Alloc Recorded: %p of %" PRIuS " " , ptr, size);
591591 }
592592}
593593
@@ -645,12 +645,12 @@ static void RegisterStackLocked(const void* top_ptr) {
645645 if (MemoryRegionMap::FindAndMarkStackRegion (top, ®ion)) {
646646 // Make the proper portion of the stack live:
647647 if (stack_direction == GROWS_TOWARDS_LOW_ADDRESSES) {
648- RAW_VLOG (11 , " Live stack at %p of %" PRIuPTR" bytes" ,
648+ RAW_VLOG (11 , " Live stack at %p of %" PRIuPTR " bytes" ,
649649 top_ptr, region.end_addr - top);
650650 live_objects->push_back (AllocObject (top_ptr, region.end_addr - top,
651651 THREAD_DATA));
652652 } else { // GROWS_TOWARDS_HIGH_ADDRESSES
653- RAW_VLOG (11 , " Live stack at %p of %" PRIuPTR" bytes" ,
653+ RAW_VLOG (11 , " Live stack at %p of %" PRIuPTR " bytes" ,
654654 AsPtr (region.start_addr ),
655655 top - region.start_addr );
656656 live_objects->push_back (AllocObject (AsPtr (region.start_addr ),
@@ -692,12 +692,12 @@ static void RegisterStackLocked(const void* top_ptr) {
692692 }
693693 // Make the proper portion of the stack live:
694694 if (stack_direction == GROWS_TOWARDS_LOW_ADDRESSES) {
695- RAW_VLOG (11 , " Live stack at %p of %" PRIuPTR" bytes" ,
695+ RAW_VLOG (11 , " Live stack at %p of %" PRIuPTR " bytes" ,
696696 top_ptr, stack_end - top);
697697 live_objects->push_back (
698698 AllocObject (top_ptr, stack_end - top, THREAD_DATA));
699699 } else { // GROWS_TOWARDS_HIGH_ADDRESSES
700- RAW_VLOG (11 , " Live stack at %p of %" PRIuPTR" bytes" ,
700+ RAW_VLOG (11 , " Live stack at %p of %" PRIuPTR " bytes" ,
701701 AsPtr (stack_start), top - stack_start);
702702 live_objects->push_back (
703703 AllocObject (AsPtr (stack_start), top - stack_start, THREAD_DATA));
@@ -770,14 +770,14 @@ static void MakeDisabledLiveCallbackLocked(
770770 // and the rest of the region where the stack lives can well
771771 // contain outdated stack variables which are not live anymore,
772772 // hence should not be treated as such.
773- RAW_VLOG (11 , " Not %s-disabling %" PRIuS" bytes at %p"
773+ RAW_VLOG (11 , " Not %s-disabling %" PRIuS " bytes at %p"
774774 " : have stack inside: %p" ,
775775 (stack_disable ? " stack" : " range" ),
776776 info.object_size , ptr, AsPtr (*iter));
777777 return ;
778778 }
779779 }
780- RAW_VLOG (11 , " %s-disabling %" PRIuS" bytes at %p" ,
780+ RAW_VLOG (11 , " %s-disabling %" PRIuS " bytes at %p" ,
781781 (stack_disable ? " Stack" : " Range" ), info.object_size , ptr);
782782 live_objects->push_back (AllocObject (ptr, info.object_size ,
783783 MUST_BE_ON_HEAP));
@@ -1061,7 +1061,7 @@ static enum {
10611061 if (thread_registers.size ()) {
10621062 // Make thread registers be live heap data sources.
10631063 // we rely here on the fact that vector is in one memory chunk:
1064- RAW_VLOG (11 , " Live registers at %p of %" PRIuS" bytes" ,
1064+ RAW_VLOG (11 , " Live registers at %p of %" PRIuS " bytes" ,
10651065 &thread_registers[0 ], thread_registers.size () * sizeof (void *));
10661066 live_objects->push_back (AllocObject (&thread_registers[0 ],
10671067 thread_registers.size () * sizeof (void *),
@@ -1098,7 +1098,7 @@ void HeapLeakChecker::IgnoreNonThreadLiveObjectsLocked() {
10981098 for (IgnoredObjectsMap::const_iterator object = ignored_objects->begin ();
10991099 object != ignored_objects->end (); ++object) {
11001100 const void * ptr = AsPtr (object->first );
1101- RAW_VLOG (11 , " Ignored live object at %p of %" PRIuS" bytes" ,
1101+ RAW_VLOG (11 , " Ignored live object at %p of %" PRIuS " bytes" ,
11021102 ptr, object->second );
11031103 live_objects->
11041104 push_back (AllocObject (ptr, object->second , MUST_BE_ON_HEAP));
@@ -1107,7 +1107,7 @@ void HeapLeakChecker::IgnoreNonThreadLiveObjectsLocked() {
11071107 size_t object_size;
11081108 if (!(heap_profile->FindAlloc (ptr, &object_size) &&
11091109 object->second == object_size)) {
1110- RAW_LOG (FATAL, " Object at %p of %" PRIuS" bytes from an"
1110+ RAW_LOG (FATAL, " Object at %p of %" PRIuS " bytes from an"
11111111 " IgnoreObject() has disappeared" , ptr, object->second );
11121112 }
11131113 }
@@ -1214,7 +1214,7 @@ void HeapLeakChecker::IgnoreNonThreadLiveObjectsLocked() {
12141214 if (VLOG_IS_ON (11 )) {
12151215 for (LiveObjectsStack::const_iterator i = l->second .begin ();
12161216 i != l->second .end (); ++i) {
1217- RAW_VLOG (11 , " Library live region at %p of %" PRIuPTR" bytes" ,
1217+ RAW_VLOG (11 , " Library live region at %p of %" PRIuPTR " bytes" ,
12181218 i->ptr , i->size );
12191219 }
12201220 }
@@ -1335,7 +1335,7 @@ void HeapLeakChecker::IgnoreAllLiveObjectsLocked(const void* self_stack_top) {
13351335 IgnoreNonThreadLiveObjectsLocked ();
13361336 }
13371337 if (live_objects_total) {
1338- RAW_VLOG (10 , " Ignoring %" PRId64" reachable objects of %" PRId64" bytes" ,
1338+ RAW_VLOG (10 , " Ignoring %" PRId64 " reachable objects of %" PRId64 " bytes" ,
13391339 live_objects_total, live_bytes_total);
13401340 }
13411341 // Free these: we made them here and heap_profile never saw them
@@ -1394,7 +1394,7 @@ static SpinLock alignment_checker_lock(SpinLock::LINKER_INITIALIZED);
13941394 live_object_count += 1 ;
13951395 live_byte_count += size;
13961396 }
1397- RAW_VLOG (13 , " Looking for heap pointers in %p of %" PRIuS" bytes" ,
1397+ RAW_VLOG (13 , " Looking for heap pointers in %p of %" PRIuS " bytes" ,
13981398 object, size);
13991399 const char * const whole_object = object;
14001400 size_t const whole_size = size;
@@ -1465,8 +1465,8 @@ static SpinLock alignment_checker_lock(SpinLock::LINKER_INITIALIZED);
14651465 // a heap object which is in fact leaked.
14661466 // I.e. in very rare and probably not repeatable/lasting cases
14671467 // we might miss some real heap memory leaks.
1468- RAW_VLOG (14 , " Found pointer to %p of %" PRIuS" bytes at %p "
1469- " inside %p of size %" PRIuS" " ,
1468+ RAW_VLOG (14 , " Found pointer to %p of %" PRIuS " bytes at %p "
1469+ " inside %p of size %" PRIuS " " ,
14701470 ptr, object_size, object, whole_object, whole_size);
14711471 if (VLOG_IS_ON (15 )) {
14721472 // log call stacks to help debug how come something is not a leak
@@ -1491,7 +1491,7 @@ static SpinLock alignment_checker_lock(SpinLock::LINKER_INITIALIZED);
14911491 live_objects_total += live_object_count;
14921492 live_bytes_total += live_byte_count;
14931493 if (live_object_count) {
1494- RAW_VLOG (10 , " Removed %" PRId64" live heap objects of %" PRId64" bytes: %s%s" ,
1494+ RAW_VLOG (10 , " Removed %" PRId64 " live heap objects of %" PRId64 " bytes: %s%s" ,
14951495 live_object_count, live_byte_count, name, name2);
14961496 }
14971497}
@@ -1513,7 +1513,7 @@ void HeapLeakChecker::DoIgnoreObject(const void* ptr) {
15131513 if (!HaveOnHeapLocked (&ptr, &object_size)) {
15141514 RAW_LOG (ERROR, " No live heap object at %p to ignore" , ptr);
15151515 } else {
1516- RAW_VLOG (10 , " Going to ignore live object at %p of %" PRIuS" bytes" ,
1516+ RAW_VLOG (10 , " Going to ignore live object at %p of %" PRIuS " bytes" ,
15171517 ptr, object_size);
15181518 if (ignored_objects == NULL ) {
15191519 ignored_objects = new (Allocator::Allocate (sizeof (IgnoredObjectsMap)))
@@ -1540,7 +1540,7 @@ void HeapLeakChecker::UnIgnoreObject(const void* ptr) {
15401540 ignored_objects->erase (object);
15411541 found = true ;
15421542 RAW_VLOG (10 , " Now not going to ignore live object "
1543- " at %p of %" PRIuS" bytes" , ptr, object_size);
1543+ " at %p of %" PRIuS " bytes" , ptr, object_size);
15441544 }
15451545 }
15461546 if (!found) RAW_LOG (FATAL, " Object at %p has not been ignored" , ptr);
@@ -1588,8 +1588,8 @@ void HeapLeakChecker::Create(const char *name, bool make_start_snapshot) {
15881588 const HeapProfileTable::Stats& t = heap_profile->total ();
15891589 const size_t start_inuse_bytes = t.alloc_size - t.free_size ;
15901590 const size_t start_inuse_allocs = t.allocs - t.frees ;
1591- RAW_VLOG (10 , " Start check \" %s\" profile: %" PRIuS" bytes "
1592- " in %" PRIuS" objects" ,
1591+ RAW_VLOG (10 , " Start check \" %s\" profile: %" PRIuS " bytes "
1592+ " in %" PRIuS " objects" ,
15931593 name_, start_inuse_bytes, start_inuse_allocs);
15941594 } else {
15951595 RAW_LOG (WARNING, " Heap checker is not active, "
@@ -1813,7 +1813,7 @@ bool HeapLeakChecker::DoNoLeaks(ShouldSymbolize should_symbolize) {
18131813 RAW_VLOG (heap_checker_info_level,
18141814 " No leaks found for check \" %s\" "
18151815 " (but no 100%% guarantee that there aren't any): "
1816- " found %" PRId64" reachable heap objects of %" PRId64" bytes" ,
1816+ " found %" PRId64 " reachable heap objects of %" PRId64 " bytes" ,
18171817 name_,
18181818 int64 (stats.allocs - stats.frees ),
18191819 int64 (stats.alloc_size - stats.free_size ));
@@ -2353,7 +2353,7 @@ inline bool HeapLeakChecker::HaveOnHeapLocked(const void** ptr,
23532353 const uintptr_t addr = AsInt (*ptr);
23542354 if (heap_profile->FindInsideAlloc (
23552355 *ptr, max_heap_object_size, ptr, object_size)) {
2356- RAW_VLOG (16 , " Got pointer into %p at +%" PRIuPTR" offset" ,
2356+ RAW_VLOG (16 , " Got pointer into %p at +%" PRIuPTR " offset" ,
23572357 *ptr, addr - AsInt (*ptr));
23582358 return true ;
23592359 }
0 commit comments