Skip to content

Check span placement and stats after every step in huge_page_aware_allocator_fuzz. - #992

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

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

Conversation

@copybara-service

Copy link
Copy Markdown

Check span placement and stats after every step in huge_page_aware_allocator_fuzz.

New/NewAligned must return exactly the requested pages, carry the allocator's
memory tag, honor the requested power-of-two alignment, and not overlap any
live span, tracked in an ordered map keyed by first page. After every
top-level instruction, backing stats must account for every live span plus
in-flight releases and GetReleaseStats must match the expected totals,
rather than only when GatherAndCheckStats or a release instruction happens to
run. Record each span's access density so Delete receives the density it was
allocated with instead of always kSparse.

…locator_fuzz.

New/NewAligned must return exactly the requested pages, carry the allocator's
memory tag, honor the requested power-of-two alignment, and not overlap any
live span, tracked in an ordered map keyed by first page. After every
top-level instruction, backing stats must account for every live span plus
in-flight releases and GetReleaseStats must match the expected totals,
rather than only when GatherAndCheckStats or a release instruction happens to
run. Record each span's access density so Delete receives the density it was
allocated with instead of always kSparse.

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