From 60bb7312d9b87c0250ccda411fcc501adc88478a Mon Sep 17 00:00:00 2001 From: LepilkinaElena Date: Thu, 6 Feb 2020 16:31:09 +0300 Subject: [PATCH] Rare GC calls (#3833) --- runtime/src/main/cpp/Memory.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runtime/src/main/cpp/Memory.cpp b/runtime/src/main/cpp/Memory.cpp index bc55fb5c80b..c79ed1824d4 100644 --- a/runtime/src/main/cpp/Memory.cpp +++ b/runtime/src/main/cpp/Memory.cpp @@ -84,7 +84,7 @@ constexpr size_t kGcThreshold = 8 * 1024; // increase GC threshold by 1.5 times. constexpr double kGcToComputeRatioThreshold = 0.5; // Never exceed this value when increasing GC threshold. -constexpr size_t kMaxErgonomicThreshold = 16 * 1024; +constexpr size_t kMaxErgonomicThreshold = 32 * 1024; // Threshold of size for toFree set, triggering actual cycle collector. constexpr size_t kMaxToFreeSize = 8 * 1024; // How many elements in finalizer queue allowed before cleaning it up.