[heap] Remove --experimental_new_space_growth_heuristic
The flag is old and is disabled by default. Change-Id: Ica1e4f3d7a9ec0e1130a8b097848251f9dc74ce0 Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2108727 Reviewed-by: Michael Lippautz <mlippautz@chromium.org> Commit-Queue: Ulan Degenbaev <ulan@chromium.org> Cr-Commit-Position: refs/heads/master@{#66777}
This commit is contained in:
parent
9b715dfefa
commit
70bc9b5a41
@ -818,9 +818,6 @@ DEFINE_SIZE_T(max_semi_space_size, 0,
|
||||
"max size of a semi-space (in MBytes), the new space consists of "
|
||||
"two semi-spaces")
|
||||
DEFINE_INT(semi_space_growth_factor, 2, "factor by which to grow the new space")
|
||||
DEFINE_BOOL(experimental_new_space_growth_heuristic, false,
|
||||
"Grow the new space based on the percentage of survivors instead "
|
||||
"of their absolute value.")
|
||||
DEFINE_SIZE_T(max_old_space_size, 0, "max size of the old space (in Mbytes)")
|
||||
DEFINE_SIZE_T(
|
||||
max_heap_size, 0,
|
||||
|
@ -2314,16 +2314,8 @@ void Heap::MarkCompactPrologue() {
|
||||
|
||||
|
||||
void Heap::CheckNewSpaceExpansionCriteria() {
|
||||
if (FLAG_experimental_new_space_growth_heuristic) {
|
||||
if (new_space_->TotalCapacity() < new_space_->MaximumCapacity() &&
|
||||
survived_last_scavenge_ * 100 / new_space_->TotalCapacity() >= 10) {
|
||||
// Grow the size of new space if there is room to grow, and more than 10%
|
||||
// have survived the last scavenge.
|
||||
new_space_->Grow();
|
||||
survived_since_last_expansion_ = 0;
|
||||
}
|
||||
} else if (new_space_->TotalCapacity() < new_space_->MaximumCapacity() &&
|
||||
survived_since_last_expansion_ > new_space_->TotalCapacity()) {
|
||||
if (new_space_->TotalCapacity() < new_space_->MaximumCapacity() &&
|
||||
survived_since_last_expansion_ > new_space_->TotalCapacity()) {
|
||||
// Grow the size of new space if there is room to grow, and enough data
|
||||
// has survived scavenge since the last expansion.
|
||||
new_space_->Grow();
|
||||
|
Loading…
Reference in New Issue
Block a user