Index: src/heap/object-stats.cc |
diff --git a/src/heap/object-stats.cc b/src/heap/object-stats.cc |
index 271d1783548c95c371bdcd78a5b0178eebf4dff1..34621a95a92bb72b6dfb756b3e781562b22bdd8e 100644 |
--- a/src/heap/object-stats.cc |
+++ b/src/heap/object-stats.cc |
@@ -29,7 +29,10 @@ void ObjectStats::ClearObjectStats(bool clear_last_time_stats) { |
visited_fixed_array_sub_types_.clear(); |
} |
-static void PrintJSONArray(size_t* array, const int len) { |
+// Tell the compiler to never inline this: occasionally, the optimizer will |
+// decide to inline this and unroll the loop, making the compiled code more than |
+// 100KB larger. |
+V8_NOINLINE static void PrintJSONArray(size_t* array, const int len) { |
PrintF("[ "); |
for (int i = 0; i < len; i++) { |
PrintF("%zu", array[i]); |