Commit 8b737395 authored by hpayer's avatar hpayer Committed by Commit bot

Experiment: reduce heap growing factor to investigate OOM impact.

This CL will be reverted after getting sufficient data.
BUG=

Review URL: https://codereview.chromium.org/1060533003

Cr-Commit-Position: refs/heads/master@{#27804}
parent d7fe3b83
......@@ -5175,11 +5175,11 @@ intptr_t Heap::OldGenerationAllocationLimit(intptr_t old_gen_size,
const int kMaxHandles = 1000;
const int kMinHandles = 100;
double min_factor = 1.1;
double max_factor = 4;
double max_factor = 1.5;
// We set the old generation growing factor to 2 to grow the heap slower on
// memory-constrained devices.
if (max_old_generation_size_ <= kMaxOldSpaceSizeMediumMemoryDevice) {
max_factor = 2;
max_factor = 1.5;
}
// If there are many freed global handles, then the next full GC will
// likely collect a lot of garbage. Choose the heap growing factor
......
......@@ -6646,7 +6646,8 @@ void InternalFieldCallback(bool global_gc) {
}
}
if (global_gc) {
CcTest::heap()->CollectAllGarbage(TestHeap::Heap::kNoGCFlags);
CcTest::heap()->CollectAllGarbage(
TestHeap::Heap::kAbortIncrementalMarkingMask);
} else {
CcTest::heap()->CollectGarbage(i::NEW_SPACE);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment