Skip to content

Move drained slab metadata ablation to InitializeFromExperiments. - #1714

Draft
copybara-service[bot] wants to merge 1 commit into
masterfrom
test_1006750346
Draft

copybara-service[bot] wants to merge 1 commit into
masterfrom
test_1006750346

Conversation

@copybara-service

Copy link
Copy Markdown

Move drained slab metadata ablation to InitializeFromExperiments.

Parameters::release_drained_slab_metadata() checked a LowLevelCallOnce
flag on every read to apply TCMALLOC_RELEASE_DRAINED_METADATA_ABLATION.
Apply the experiment in Parameters::InitializeFromExperiments() with the
other experiment-defaulted parameters, and make the getter a plain load.

TCMalloc_Internal_{Get,Set}ReleaseDrainedSlabMetadata call
InitIfNecessary() first, like the other parameters initialized there, so an
explicit setting still wins over the experiment.

`Parameters::release_drained_slab_metadata()` checked a `LowLevelCallOnce`
flag on every read to apply `TCMALLOC_RELEASE_DRAINED_METADATA_ABLATION`.
Apply the experiment in `Parameters::InitializeFromExperiments()` with the
other experiment-defaulted parameters, and make the getter a plain load.

`TCMalloc_Internal_{Get,Set}ReleaseDrainedSlabMetadata` call
`InitIfNecessary()` first, like the other parameters initialized there, so an
explicit setting still wins over the experiment.

PiperOrigin-RevId: 1006750346

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant