Skip to content

Commit

Permalink
Roll back reuse size class experiment.
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 713325896
Change-Id: I759d5bff104c0cf6f8c15ca029243c9030013b85
  • Loading branch information
v-gogte authored and copybara-github committed Jan 8, 2025
1 parent b6563db commit 67370f7
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 6 deletions.
3 changes: 1 addition & 2 deletions tcmalloc/experiment.cc
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,7 @@ bool HasBrittleTestFailures(Experiment exp) {
return true;
}

if (exp == Experiment::TEST_ONLY_TCMALLOC_REUSE_SIZE_CLASSES ||
exp == Experiment::TCMALLOC_REUSE_SIZE_CLASSES) {
if (exp == Experiment::TEST_ONLY_TCMALLOC_REUSE_SIZE_CLASSES) {
return true;
}

Expand Down
2 changes: 0 additions & 2 deletions tcmalloc/experiment_config.h
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ enum class Experiment : int {
// clang-format off
// go/keep-sorted start
TCMALLOC_DENSE_TRACKERS_SORTED_ON_SPANS, // TODO(b/348043731): Complete experiment.
TCMALLOC_REUSE_SIZE_CLASSES, // TODO(b/358126781): Complete experiment.
TEST_ONLY_L3_AWARE, // TODO(b/239977380): Complete experiment.
TEST_ONLY_TCMALLOC_DENSE_TRACKERS_SORTED_ON_SPANS_ALLOCATED, // TODO(b/348043731): Complete experiment.
TEST_ONLY_TCMALLOC_HUGE_CACHE_RELEASE_30S, // TODO(b/319872040): Complete experiment.
Expand All @@ -45,7 +44,6 @@ struct ExperimentConfig {
inline constexpr ExperimentConfig experiments[] = {
// go/keep-sorted start
{Experiment::TCMALLOC_DENSE_TRACKERS_SORTED_ON_SPANS, "TCMALLOC_DENSE_TRACKERS_SORTED_ON_SPANS"},
{Experiment::TCMALLOC_REUSE_SIZE_CLASSES, "TCMALLOC_REUSE_SIZE_CLASSES"},
{Experiment::TEST_ONLY_L3_AWARE, "TEST_ONLY_L3_AWARE"},
{Experiment::TEST_ONLY_TCMALLOC_DENSE_TRACKERS_SORTED_ON_SPANS_ALLOCATED, "TEST_ONLY_TCMALLOC_DENSE_TRACKERS_SORTED_ON_SPANS_ALLOCATED"},
{Experiment::TEST_ONLY_TCMALLOC_HUGE_CACHE_RELEASE_30S, "TEST_ONLY_TCMALLOC_HUGE_CACHE_RELEASE_30S"},
Expand Down
3 changes: 1 addition & 2 deletions tcmalloc/static_vars.cc
Original file line number Diff line number Diff line change
Expand Up @@ -177,8 +177,7 @@ SizeClassConfiguration Static::size_class_configuration() {
// TODO(b/242710633): remove this opt out.
return SizeClassConfiguration::kLegacy;
} else if (IsExperimentActive(
Experiment::TEST_ONLY_TCMALLOC_REUSE_SIZE_CLASSES) ||
IsExperimentActive(Experiment::TCMALLOC_REUSE_SIZE_CLASSES)) {
Experiment::TEST_ONLY_TCMALLOC_REUSE_SIZE_CLASSES)) {
return SizeClassConfiguration::kReuse;
} else {
return SizeClassConfiguration::kPow2Below64;
Expand Down

0 comments on commit 67370f7

Please sign in to comment.