Skip to content

Refactor residency to return bitmaps in TCMalloc page granularity.#340

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

Refactor residency to return bitmaps in TCMalloc page granularity.#340
copybara-service[bot] wants to merge 1 commit into
masterfrom
test_945306649

Conversation

@copybara-service

Copy link
Copy Markdown

Refactor residency to return bitmaps in TCMalloc page granularity.

  • Update Residency::GetUnbackedAndSwappedBitmaps to take native_pages_per_element, allowing callers to request bitmaps in TCMalloc page granularity directly.
  • Remove bitmap conversion loop in PageTracker::MarkSubreleased.
  • Update call sites and telemetry recording in HugePageFiller to use element-granularity bitmaps.
  • Update mocks and test fakes to aggregate native bitmaps according to native_pages_per_element.

* Update Residency::GetUnbackedAndSwappedBitmaps to take native_pages_per_element, allowing callers to request bitmaps in TCMalloc page granularity directly.
* Remove bitmap conversion loop in PageTracker::MarkSubreleased.
* Update call sites and telemetry recording in HugePageFiller to use element-granularity bitmaps.
* Update mocks and test fakes to aggregate native bitmaps according to native_pages_per_element.

PiperOrigin-RevId: 945306649
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