From 2265a852b49cc7b2c3f8bd469e711bca46418620 Mon Sep 17 00:00:00 2001 From: Hannes Payer Date: Wed, 4 Jul 2018 11:23:55 +0200 Subject: [PATCH] [snapshot] Reduce serialization chunk size to 4K. This change may slow down deserialization of the snapshot but may result in less fragmentation. Bug: v8:7887 Change-Id: Id8bb9f1a561b08b7ae0f10b80aa77bc00eb23172 Reviewed-on: https://chromium-review.googlesource.com/1125722 Reviewed-by: Yang Guo Commit-Queue: Hannes Payer Cr-Commit-Position: refs/heads/master@{#54198} --- src/flag-definitions.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/flag-definitions.h b/src/flag-definitions.h index 7eb47cd26a..f99875510c 100644 --- a/src/flag-definitions.h +++ b/src/flag-definitions.h @@ -1080,7 +1080,8 @@ DEFINE_BOOL(profile_deserialization, false, "Print the time it takes to deserialize the snapshot.") DEFINE_BOOL(serialization_statistics, false, "Collect statistics on serialized objects.") -DEFINE_UINT(serialization_chunk_size, 0, "Custom size for serialization chunks") +DEFINE_UINT(serialization_chunk_size, 4096, + "Custom size for serialization chunks") // Regexp DEFINE_BOOL(regexp_optimization, true, "generate optimized regexp code")