From 3e31fdf3b999ddcf87ce44b667a708cf7d836d63 Mon Sep 17 00:00:00 2001 From: Elena Lepilkina Date: Thu, 27 Jun 2019 14:22:54 +0300 Subject: [PATCH] Experiment: Change maximum ergonomic threshold --- 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 2439e3e2fef..f5ff2162794 100644 --- a/runtime/src/main/cpp/Memory.cpp +++ b/runtime/src/main/cpp/Memory.cpp @@ -77,7 +77,7 @@ constexpr size_t kGcThreshold = 16 * 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 = 1024 * 1024; +constexpr size_t kMaxErgonomicThreshold = 4 * 1024; #endif // GC_ERGONOMICS // Threshold of size for toFree set, triggering actual cycle collector. constexpr size_t kMaxToFreeSize = 8 * 1024;