Skip to content

Check exact slab length and capacity transitions in percpu_tcmalloc_fuzz. - #970

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

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

Conversation

@copybara-service

Copy link
Copy Markdown

Check exact slab length and capacity transitions in percpu_tcmalloc_fuzz.

Snapshot Length and Capacity around every operation. On a cached slab of a
running CPU, Push/PushBatch must take exactly min(n, capacity - length)
objects and Pop/PopBatch must yield exactly min(n, length); Length always
moves by the reported count. Grow and GrowOtherCache raise capacity by
exactly min(len, max_capacity - capacity) (Grow may also abort with 0),
ShrinkOtherCache lowers it by min(len, capacity) and returns only the objects
displaced beyond the unused capacity, and Drain hands back every object with
the prior capacity and leaves capacity at zero rather than merely bounded.

…uzz.

Snapshot Length and Capacity around every operation. On a cached slab of a
running CPU, Push/PushBatch must take exactly min(n, capacity - length)
objects and Pop/PopBatch must yield exactly min(n, length); Length always
moves by the reported count. Grow and GrowOtherCache raise capacity by
exactly min(len, max_capacity - capacity) (Grow may also abort with 0),
ShrinkOtherCache lowers it by min(len, capacity) and returns only the objects
displaced beyond the unused capacity, and Drain hands back every object with
the prior capacity and leaves capacity at zero rather than merely bounded.

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