@@ -185,9 +185,10 @@ class SizeClassAllocator64 {
185
185
// recoverable.
186
186
if (UNLIKELY (!EnsureFreeArraySpace (region, region_beg,
187
187
new_num_freed_chunks))) {
188
- Report (" FATAL: Internal error: %s's allocator exhausted the free list "
189
- " space for size class %zd (%zd bytes).\n " , SanitizerToolName,
190
- class_id, ClassIdToSize (class_id));
188
+ Report (
189
+ " FATAL: Internal error: %s's allocator exhausted the free list "
190
+ " space for size class %zu (%zu bytes).\n " ,
191
+ SanitizerToolName, class_id, ClassIdToSize (class_id));
191
192
Die ();
192
193
}
193
194
for (uptr i = 0 ; i < n_chunks; i++)
@@ -763,8 +764,9 @@ class SizeClassAllocator64 {
763
764
if (!region->exhausted ) {
764
765
region->exhausted = true ;
765
766
Printf (" %s: Out of memory. " , SanitizerToolName);
766
- Printf (" The process has exhausted %zuMB for size class %zu.\n " ,
767
- kRegionSize >> 20 , ClassIdToSize (class_id));
767
+ Printf (
768
+ " The process has exhausted %zu MB for size class %zu (%zu bytes).\n " ,
769
+ kRegionSize >> 20 , class_id, ClassIdToSize (class_id));
768
770
}
769
771
return true ;
770
772
}
0 commit comments