Skip to content

Avoid consulting clock twice between HugePageFiller and TimeSeriesTracker. - #1020

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

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

Conversation

@copybara-service

Copy link
Copy Markdown

Avoid consulting clock twice between HugePageFiller and TimeSeriesTracker.

HugePageFiller::Allocate and HugePageFiller::Put previously queried the cycle
clock multiple times in the same operation (once for lifetime/allocation
tracking and once inside TimeSeriesTracker::Report). Thread the existing
timestamp to SubreleaseStatsTracker::Report and UpdateFillerStatsTracker.

In legacy locking mode (TCMALLOC_INTERNAL_LEGACY_LOCKING), expose now as a dead
parameter and query the cycle clock locally to preserve baseline behavior for
ablation testing.

…cker.

HugePageFiller::Allocate and HugePageFiller::Put previously queried the cycle
clock multiple times in the same operation (once for lifetime/allocation
tracking and once inside TimeSeriesTracker::Report). Thread the existing
timestamp to SubreleaseStatsTracker::Report and UpdateFillerStatsTracker.

In legacy locking mode (TCMALLOC_INTERNAL_LEGACY_LOCKING), expose now as a dead
parameter and query the cycle clock locally to preserve baseline behavior for
ablation testing.

PiperOrigin-RevId: 984182600
@google-cla

google-cla Bot commented Sep 19, 2026

Copy link
Copy Markdown

Thanks for your pull request! It looks like this may be your first contribution to a Google open source project. Before we can look at your pull request, you'll need to sign a Contributor License Agreement (CLA).

View this failed invocation of the CLA check for more information.

For the most up to date status, view the checks section at the bottom of the pull request.

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.

0 participants