Skip to content

Fix pagemap root residency adjustment in metadata_bytes. - #541

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

Fix pagemap root residency adjustment in metadata_bytes.#541
copybara-service[bot] wants to merge 1 commit into
masterfrom
test_968266034

Conversation

@copybara-service

Copy link
Copy Markdown

Fix pagemap root residency adjustment in metadata_bytes.

When adjusting metadata_bytes for the residency of the pagemap root,
we previously subtracted r.pagemap_bytes (which includes both sizeof(PageMap)
and all arena-allocated internal and leaf nodes). This caused all
dynamically allocated pagemap metadata to be eliminated from metadata_bytes
whenever residency reporting was enabled.

When adjusting metadata_bytes for the residency of the pagemap root,
we previously subtracted r.pagemap_bytes (which includes both sizeof(PageMap)
and all arena-allocated internal and leaf nodes). This caused all
dynamically allocated pagemap metadata to be eliminated from metadata_bytes
whenever residency reporting was enabled.

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